Skip to content

Commit 3008b38

Browse files
committed
Also run lints
1 parent 87f74d8 commit 3008b38

3 files changed

Lines changed: 24 additions & 9 deletions

File tree

.github/workflows/main.yml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
persist-credentials: false
2626

2727
- uses: extractions/setup-just@e33e0265a09d6d736e2ee1e0eb685ef1de4669ff # v3.0.0
28-
- uses: hynek/setup-cached-uv@757bedc3f972eb7227a1aa657651f15a8527c817
28+
- uses: hynek/setup-cached-uv@757bedc3f972eb7227a1aa657651f15a8527c817 # v2.3.0
2929

3030
- name: "Run Tests"
3131
env:
@@ -57,7 +57,7 @@ jobs:
5757
pattern: coverage-data-*
5858
merge-multiple: true
5959

60-
- uses: hynek/setup-cached-uv@757bedc3f972eb7227a1aa657651f15a8527c817
60+
- uses: hynek/setup-cached-uv@757bedc3f972eb7227a1aa657651f15a8527c817 # v2.3.0
6161

6262
- name: "Combine coverage"
6363
run: |
@@ -81,6 +81,21 @@ jobs:
8181
path: "htmlcov"
8282
if: always()
8383

84+
lint:
85+
name: "Run linters"
86+
runs-on: "ubuntu-latest"
87+
steps:
88+
- uses: "actions/checkout@v4"
89+
with:
90+
persist-credentials: false
91+
92+
- uses: extractions/setup-just@e33e0265a09d6d736e2ee1e0eb685ef1de4669ff # v3.0.0
93+
- uses: hynek/setup-cached-uv@757bedc3f972eb7227a1aa657651f15a8527c817 # v2.3.0
94+
95+
- name: "Run linters"
96+
run: |
97+
just lint
98+
8499
package:
85100
name: "Build & verify package"
86101
runs-on: "ubuntu-latest"

Justfile

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,10 @@ test *args="-x --ff -n auto tests":
99

1010
cov *args="-x --ff -n auto tests":
1111
@uv run {{ if python != '' { '-p ' + python } else { '' } }} python -c 'import pathlib, site; pathlib.Path(f"{site.getsitepackages()[0]}/cov.pth").write_text("import coverage; coverage.process_startup()")'
12-
COVERAGE_PROCESS_START={{justfile_directory()}}/pyproject.toml uv run {{ if python != '' { '-p ' + python } else { '' } }} --all-extras --group test coverage run -m pytest {{args}}
12+
COVERAGE_PROCESS_START={{justfile_directory()}}/pyproject.toml uv run {{ if python != '' { '-p ' + python } else { '' } }} --all-extras --group test coverage run -m pytest {{args}}
13+
14+
bench-cmp:
15+
uv run pytest bench --benchmark-compare
16+
17+
bench:
18+
uv run pytest bench --benchmark-save base

Makefile

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,3 @@ docs: ## generate Sphinx HTML documentation, including API docs
4949

5050
htmllive: docs ## compile the docs watching for changes
5151
$(MAKE) -C docs htmllive
52-
53-
bench-cmp:
54-
pytest bench --benchmark-compare
55-
56-
bench:
57-
pytest bench --benchmark-save base

0 commit comments

Comments
 (0)