Enable more ruff
rules
#57
Workflow file for this run
This file contains 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: Test | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
test: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest, macos-latest] | |
python-version: ['3.12'] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Upgrade pip | |
run: python -m pip install --upgrade pip | |
- name: Install poetry | |
run: python -m pip install poetry | |
- name: Install dependencies | |
run: | | |
poetry add pytest-github-actions-annotate-failures@latest --group=test | |
poetry install --only main,test | |
- name: Run tests | |
run: poetry run pytest tests --junitxml=junit.xml -n auto | |
- name: Test reporter | |
uses: phoenix-actions/test-reporting@v15 | |
if: success() || failure() | |
with: | |
name: Secret Santa tests on ${{ matrix.os }} (Python ${{ matrix.python-version }}) Report | |
path: junit.xml | |
reporter: java-junit | |
output-to: step-summary | |
only-summary: true | |
max-annotations: 0 |