Bump ruff from 0.6.9 to 0.7.0 #3563
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: CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- "**" # run on all branches | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.10", "3.11", "3.12", "3.13-dev"] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
cache: "pip" | |
cache-dependency-path: | | |
requirements/production.txt | |
requirements/testing.txt | |
.pre-commit-config.yaml | |
- name: Install dependencies | |
run: | | |
pip install -r requirements/testing.txt | |
- name: CI | |
run: | | |
tox | |
- name: Upload coverage artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: coverage-${{ matrix.python-version }} | |
path: .coverage | |
include-hidden-files: true | |
coverage: | |
name: Process test coverage | |
runs-on: ubuntu-latest | |
needs: ["build"] | |
strategy: | |
matrix: | |
python-version: ["3.12"] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
cache: "pip" | |
cache-dependency-path: | | |
requirements/production.txt | |
requirements/testing.txt | |
.pre-commit-config.yaml | |
- name: Install dependencies | |
run: | | |
pip install -r requirements/testing.txt | |
- name: Download all coverage artifacts | |
uses: actions/download-artifact@v4 | |
- name: Create coverage report | |
run: | | |
coverage combine coverage-*/.coverage | |
coverage report --fail-under=94 | |
coverage xml | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v4 | |
env: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |