Skip to content

Commit 33be556

Browse files
committed
MAINT: upgrade lock files
1 parent b80baec commit 33be556

9 files changed

Lines changed: 89 additions & 98 deletions

File tree

.github/workflows/cd.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ on:
99
jobs:
1010
milestone:
1111
if: startsWith(github.ref, 'refs/tags')
12-
uses: ComPWA/actions/.github/workflows/close-milestone.yml@v3
12+
uses: ComPWA/actions/.github/workflows/close-milestone.yml@v4
1313
package-name:
14-
uses: ComPWA/actions/.github/workflows/get-pypi-name.yml@v3
14+
uses: ComPWA/actions/.github/workflows/get-pypi-name.yml@v4
1515
pypi:
1616
environment:
1717
name: PyPI
@@ -24,9 +24,9 @@ jobs:
2424
id-token: write
2525
runs-on: ubuntu-24.04
2626
steps:
27-
- uses: ComPWA/actions/build-pypi-distribution@v3
27+
- uses: ComPWA/actions/build-pypi-distribution@v4
2828
- uses: pypa/gh-action-pypi-publish@release/v1
2929
push:
3030
if: startsWith(github.ref, 'refs/tags') && !github.event.release.prerelease
3131
secrets: inherit
32-
uses: ComPWA/actions/.github/workflows/push-to-version-branches.yml@v3
32+
uses: ComPWA/actions/.github/workflows/push-to-version-branches.yml@v4

.github/workflows/ci.yml

Lines changed: 10 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -17,32 +17,24 @@ on:
1717
- epic/*
1818
- "[0-9]+.[0-9]+.x"
1919
workflow_dispatch:
20-
inputs:
21-
specific-pip-packages:
22-
description: Run CI with specific pip packages
23-
required: false
24-
type: string
2520

2621
jobs:
2722
doc:
28-
uses: ComPWA/actions/.github/workflows/ci-docs.yml@v3.0
23+
uses: ComPWA/actions/.github/workflows/ci-docs.yml@v4.0
2924
permissions:
3025
pages: write
3126
id-token: write
3227
with:
3328
apt-packages: graphviz
34-
specific-pip-packages: ${{ inputs.specific-pip-packages }}
35-
pytest:
36-
uses: ComPWA/actions/.github/workflows/pytest.yml@v3.0
37-
with:
38-
coverage-target: qrules
39-
macos-python-version: "3.10"
40-
specific-pip-packages: ${{ inputs.specific-pip-packages }}
41-
test-output-path: tests/output/
42-
secrets:
43-
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
4429
style:
45-
if: inputs.specific-pip-packages == ''
4630
secrets:
4731
token: ${{ secrets.PAT }}
48-
uses: ComPWA/actions/.github/workflows/pre-commit.yml@v3.0
32+
uses: ComPWA/actions/.github/workflows/pre-commit.yml@v4.0
33+
test:
34+
uses: ComPWA/actions/.github/workflows/test.yml@v4.0
35+
secrets:
36+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
37+
with:
38+
coverage-python-version: "3.13"
39+
macos-python-version: "3.10"
40+
test-output-path: tests/output/

.github/workflows/clean-caches.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
name: Remove caches
1717
runs-on: ubuntu-24.04
1818
steps:
19-
- uses: ComPWA/actions/clean-caches@v3
19+
- uses: ComPWA/actions/clean-caches@v4
2020
with:
2121
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2222
ref: ${{ inputs.ref }}

.github/workflows/lock.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@ on:
1717

1818
jobs:
1919
lock:
20-
uses: ComPWA/actions/.github/workflows/lock.yml@v3
20+
uses: ComPWA/actions/.github/workflows/lock.yml@v4
2121
secrets:
2222
token: ${{ secrets.PAT }}

.github/workflows/pr-linting.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ on:
1111

1212
jobs:
1313
lint-pr:
14-
uses: ComPWA/actions/.github/workflows/pr-linting.yml@v3
14+
uses: ComPWA/actions/.github/workflows/pr-linting.yml@v4

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ repos:
1515
- id: check-useless-excludes
1616

1717
- repo: https://github.com/ComPWA/policy
18-
rev: 0.8.1
18+
rev: 0.8.2rc5
1919
hooks:
2020
- id: check-dev-files
2121
args:
@@ -64,7 +64,7 @@ repos:
6464
metadata.vscode
6565
6666
- repo: https://github.com/astral-sh/ruff-pre-commit
67-
rev: v0.14.10
67+
rev: v0.14.11
6868
hooks:
6969
- id: ruff-check
7070
args: [--fix]
@@ -156,6 +156,6 @@ repos:
156156
- id: pyright
157157

158158
- repo: https://github.com/astral-sh/uv-pre-commit
159-
rev: 0.9.22
159+
rev: 0.9.24
160160
hooks:
161161
- id: uv-lock

.readthedocs.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,7 @@ build:
1111
pixi global install graphviz uv
1212
- |-
1313
export UV_LINK_MODE=copy
14-
uv run \
15-
--group doc \
16-
--no-dev \
17-
--with poethepoet \
18-
poe doc
14+
uvx --from poethepoet poe doc
1915
mkdir -p $READTHEDOCS_OUTPUT
2016
mv docs/_build/html $READTHEDOCS_OUTPUT
2117

pyproject.toml

Lines changed: 34 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,7 @@ pytest \
226226
--cov-report=html \
227227
--cov-report=xml \
228228
--numprocesses=auto \
229+
-m 'slow or not slow' \
229230
${paths}
230231
"""
231232
executor = {group = "test"}
@@ -306,7 +307,7 @@ sequence = ["doclive"]
306307
args = [{name = "paths", default = "", positional = true}]
307308
cmd = "jupyter lab ${paths}"
308309
executor = {group = "jupyter"}
309-
help = "Run Jupyter Lab"
310+
help = "Launch Jupyter Lab"
310311

311312
[tool.poe.tasks.linkcheck]
312313
cmd = """
@@ -322,23 +323,18 @@ executor = {group = "doc"}
322323
help = "Check external links in the documentation (requires internet connection)"
323324

324325
[tool.poe.tasks.nb]
326+
args = [{name = "paths", default = "docs", multiple = true, positional = true}]
325327
cmd = "pytest --nbmake --nbmake-timeout=0 ${paths}"
326328
executor = {group = "notebooks", with = "nbmake"}
327329
help = "Run all notebooks"
328330

329-
[[tool.poe.tasks.nb.args]]
330-
default = "docs"
331-
multiple = true
332-
name = "paths"
333-
positional = true
334-
335331
[tool.poe.tasks.style]
336332
cmd = "pre-commit run --all-files"
337333
executor = {group = "style"}
338334
help = "Perform all linting, formatting, and spelling checks"
339335

340336
[tool.poe.tasks.test]
341-
cmd = "pytest --numprocesses=auto ${paths}"
337+
cmd = "pytest --numprocesses=auto -m 'slow or not slow' ${paths}"
342338
executor = {group = "test"}
343339
help = "Run all unit tests"
344340

@@ -351,33 +347,39 @@ positional = true
351347
[tool.poe.tasks.test-all]
352348
help = "Run all tests on each supported Python version"
353349
sequence = [
354-
{ref = "test-py 3.9"},
355-
{ref = "test-py 3.10"},
356-
{ref = "test-py 3.11"},
357-
{ref = "test-py 3.12"},
358-
{ref = "test-py 3.13"},
359-
{ref = "test-py 3.14"},
350+
{ref = "test-py310 ${paths}"},
351+
{ref = "test-py311 ${paths}"},
352+
{ref = "test-py312 ${paths}"},
353+
{ref = "test-py313 ${paths}"},
354+
{ref = "test-py314 ${paths}"},
360355
]
361356

362-
[tool.poe.tasks.test-py]
363-
cmd = """
364-
uv run \
365-
--group=test \
366-
--isolated \
367-
--no-dev \
368-
--python=${version} \
369-
pytest \
370-
-m 'slow or not slow' \
371-
--numprocesses=auto
372-
"""
373-
help = "Run all tests on a specific Python version"
374-
375-
[[tool.poe.tasks.test-py.args]]
376-
default = "3.13"
377-
help = "Selected Python version"
378-
name = "version"
357+
[[tool.poe.tasks.test-all.args]]
358+
default = ""
359+
multiple = true
360+
name = "paths"
379361
positional = true
380362

363+
[tool.poe.tasks.test-py310]
364+
env = {UV_PYTHON = "3.10"}
365+
ref = "test"
366+
367+
[tool.poe.tasks.test-py311]
368+
env = {UV_PYTHON = "3.11"}
369+
ref = "test"
370+
371+
[tool.poe.tasks.test-py312]
372+
env = {UV_PYTHON = "3.12"}
373+
ref = "test"
374+
375+
[tool.poe.tasks.test-py313]
376+
env = {UV_PYTHON = "3.13"}
377+
ref = "test"
378+
379+
[tool.poe.tasks.test-py314]
380+
env = {UV_PYTHON = "3.14"}
381+
ref = "test"
382+
381383
[tool.pyright]
382384
reportArgumentType = false
383385
reportAssignmentType = false
@@ -486,6 +488,7 @@ ignore = [
486488
"PLW2901",
487489
"PT001",
488490
"PTH",
491+
"RUF067",
489492
"SIM108",
490493
]
491494
select = ["ALL"]

0 commit comments

Comments
 (0)