Cleanup, testing, and hardening #5
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Lint | |
| on: | |
| push: | |
| pull_request: | |
| permissions: | |
| contents: read | |
| env: | |
| PYTHONNOUSERSITE: "1" | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| static-analysis: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: actions/setup-python@v6 | |
| with: | |
| python-version: "3.11" | |
| - name: Install linters | |
| run: python -m pip install flake8==7.3.0 ruff==0.16.0 | |
| - name: Run Flake8 | |
| run: python -m flake8 pyCHX | |
| - name: Check NumPy API and constant-condition compatibility | |
| run: python -m ruff check --select NPY,SIM222 pyCHX |