Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 23 additions & 12 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,26 +46,37 @@ jobs:
- name: run test suite ${{ matrix.tox_env }}
run: tox --skip-pkg-install -e ${{ matrix.tox_env }}

check:
name: check ${{ matrix.tox_env }}
docs:
name: check docs
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
tox_env:
- lint
- docs
steps:
- uses: actions/checkout@v5
- name: setup Python 3.11
uses: actions/setup-python@v6
with:
python-version: "3.11"
- name: install tox
run: python -m pip install tox
- name: install docs dependencies
run: tox -vv --notest -e docs
- name: check docs
run: tox --skip-pkg-install -e docs

lint:
name: lint
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v5
# mypy needs to be run with the oldest Python version we support.
- name: setup Python 3.8
uses: actions/setup-python@v6
with:
python-version: "3.8"
- name: Install prettier
run: npm install -g prettier
- name: install tox
run: python -m pip install tox
- name: setup test suite for ${{ matrix.tox_env }}
run: tox -vv --notest -e ${{ matrix.tox_env }}
- name: run test suite ${{ matrix.tox_env }}
run: tox --skip-pkg-install -e ${{ matrix.tox_env }}
- name: install lint dependencies
run: tox -vv --notest -e lint
- name: lint
run: tox --skip-pkg-install -e lint
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ optional-dependencies.docs = [
"towncrier>=22.12",
]
optional-dependencies.lint = [
"black==25.1.0",
"black==24.8.0",
"ruff==0.12.7",
"isort==6.0.1",
"mypy==1.17.1",
"isort==5.13.2",
"mypy==1.14.1",
]
optional-dependencies.test = [
"anyio>=4.4.0",
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ commands =

[testenv:lint]
description = lint code in {basepython}
basepython = python3.10
basepython = python3.8
extras =
lint
commands =
Expand Down
Loading