Skip to content

ci: rename master branch push requirement in test.yml #73

ci: rename master branch push requirement in test.yml

ci: rename master branch push requirement in test.yml #73

Workflow file for this run

name: Test
on:
push:
paths:
- '.github/workflows/test.yml'
- 'topstats/**/*.py'
pull_request:
paths:
- '.github/workflows/test.yml'
- 'topstats/**/*.py'
workflow_dispatch: null
jobs:
test:
name: Run tests
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.10', 3.11, 3.12, 3.13, 3.14]
steps:
- name: Clone repository
uses: actions/checkout@v6
- name: Setup Python
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
if: ${{ github.event_name != 'pull_request' }}
run: python3 -m pytest
env:
TOPSTATS_TOKEN: ${{ secrets.TOPSTATS_TOKEN }}
- name: Lint files
if: ${{ matrix.python-version == 3.14 }}
run: python3 -m ruff check