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
28 changes: 13 additions & 15 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,15 @@ on:
workflow_dispatch:

jobs:
pre-commit:
name: pre-commit
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v5
- uses: actions/setup-python@v6
- uses: pre-commit/action@v3.0.1

tox:
name: ${{ matrix.toxenv }}
runs-on: ubuntu-latest
Expand All @@ -22,30 +31,19 @@ jobs:
matrix:
toxenv:
- py,test-coverage
- lint
- mypy

steps:
- uses: actions/checkout@v5
- uses: actions/setup-python@v6
with:
python-version: "3.14"
python-version-file: pyproject.toml
- name: Generate the cache suffix
id: cache-suffix
run: |
echo cache-suffix=${TOXENV//,/-} >> $GITHUB_OUTPUT
- uses: actions/cache@v4
- uses: astral-sh/setup-uv@v7
with:
path: |
~/.cache/pip
~/.cache/pre-commit
.mypy_cache
key: ${{ runner.os }}-pip-${{ steps.cache-suffix.outputs.cache-suffix }}
- name: Install dependencies
run: |
set -xe
python -VV
python -m pip install --upgrade pip setuptools wheel
python -m pip install --upgrade virtualenv tox
cache-suffix: ${{ steps.cache-suffix.outputs.cache-suffix }}
- name: tox
run: python -m tox
run: uvx tox
2 changes: 2 additions & 0 deletions mise.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
[tools]
pre-commit = "latest"
python = "3.14.0"

[env]
Expand All @@ -7,4 +8,5 @@ _.python.venv = { path = ".venv", create = true }
[hooks]
postinstall = [
"uv sync --active",
"pre-commit install",
]
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ allow-multiline = false
dev = [
"coverage~=7.12.0",
"mypy~=1.18.2",
"pre-commit~=4.4.0",
"pytest~=9.0.0",
"pytest-cov~=7.0.0",
"pytest-randomly~=4.0.1",
Expand Down
4 changes: 0 additions & 4 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,6 @@ commands =
commands =
coverage report --skip-covered --show-missing --fail-under=100 --include="tests/*"

[testenv:lint]
commands =
pre-commit run --all-files

[testenv:mypy]
commands =
mypy --show-error-codes {posargs: src tests}
112 changes: 0 additions & 112 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading