Merge pull request #608 from datagutten/crawlers/garfield #1019
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: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
main: | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- name: "pytest" | |
python: "3.12" | |
tox: "3.12" | |
coverage: true | |
- name: "ruff-format" | |
python: "3.12" | |
tox: ruff-format | |
- name: "ruff-lint" | |
python: "3.12" | |
tox: ruff-lint | |
- name: "mypy" | |
python: "3.12" | |
tox: mypy | |
- name: "docs" | |
python: "3.12" | |
tox: docs | |
name: ${{ matrix.name }} | |
runs-on: ubuntu-24.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: astral-sh/setup-uv@v5 | |
with: | |
python-version: ${{ matrix.python }} | |
- run: uv pip install tox tox-uv | |
- run: tox -e ${{ matrix.tox }} | |
if: ${{ ! matrix.coverage }} | |
- run: tox -e ${{ matrix.tox }} -- --cov-report=xml | |
if: ${{ matrix.coverage }} | |
- uses: codecov/codecov-action@v4 | |
if: ${{ matrix.coverage }} | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} |