Bump ruff from 0.7.2 to 0.7.3 (#1197) #2996
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: Development sanity tests | |
on: [push] | |
permissions: | |
contents: read | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.10", "3.11", "3.12", "3.13"] | |
poetry-version: ["1.8.4"] | |
steps: | |
- name: Harden Runner | |
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1 | |
with: | |
egress-policy: audit | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install Poetry | |
uses: abatilo/actions-poetry@e78f54a89cb052fff327414dd9ff010b5d2b4dbd # v3.0.1 | |
with: | |
poetry-version: ${{ matrix.poetry-version }} | |
- name: Set up Poetry virtual environment | |
run: poetry env use python${{ matrix.python-version }} | |
- name: Install project dependencies | |
run: poetry install | |
- name: Run black | |
run: poetry run black --check oeis tests | |
- name: Run flake8 | |
run: poetry run flake8 --count oeis tests | |
- name: Run tests with Poetry | |
run: | | |
poetry run pytest --junit-xml=junit/test-results-${{ matrix.python-version }}.xml --cov=oeis --cov-branch --cov-report=xml -n auto | |
- name: Upload pytest test results | |
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3 | |
with: | |
name: test-results-${{ matrix.python-version }} | |
path: junit/test-results-${{ matrix.python-version }}.xml | |
# Use always() to always run this step to publish test results when there are test failures | |
if: ${{ always() }} |