ci: add more tests #58
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: Run tests | |
| on: | |
| push: | |
| branches: [master] | |
| paths: | |
| - '.github/workflows/test.yml' | |
| - 'topstats/**/*.py' | |
| pull_request: | |
| paths: | |
| - '.github/workflows/test.yml' | |
| - 'topstats/**/*.py' | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: ['3.10', 3.11, 3.12, 3.13, 3.14] | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-python@v6 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install dependencies | |
| run: | | |
| python3 -m pip install . | |
| python3 -m pip install -r tests/requirements.txt | |
| - name: Install ruff | |
| if: ${{ matrix.python-version == 3.14 }} | |
| run: python3 -m pip install ruff | |
| - name: Run tests | |
| run: python3 -m pytest | |
| env: | |
| TOPSTATS_TOKEN: ${{ secrets.TOPSTATS_TOKEN }} | |
| - name: Lint files | |
| if: ${{ matrix.python-version == 3.14 }} | |
| run: python3 -m ruff check |