Skip to content

ci: use pytest instead of test.py #52

ci: use pytest instead of test.py

ci: use pytest instead of test.py #52

Workflow file for this run

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