Files
Archerkattri af838dfdf0 ci: declare minimal GITHUB_TOKEN permissions (contents: read)
Clears the CodeQL actions/missing-workflow-permissions alert. These CI jobs only check out code and run tests, so contents: read is sufficient.
2026-09-17 23:23:39 -04:00

35 lines
925 B
YAML

name: CI
permissions:
contents: read
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v7
- uses: actions/setup-python@v7
with:
python-version: ${{ matrix.python-version }}
- name: Install package and test dependencies
run: |
python -m pip install --upgrade pip
pip install -e ".[test]"
pip install --force-reinstall --no-deps "hicache-pp @ git+https://github.com/Archerkattri/hicache-plus-plus@master"
- name: Run CPU unit tests
run: python -m pytest -q
- name: Run static checks
run: python -m ruff check .
- name: Build wheel from clean metadata
run: python -m pip wheel . --no-deps --wheel-dir dist