Skip to content

Commit 1399aa9

Browse files
committed
DX: run all CI tasks through poe
1 parent 7514b73 commit 1399aa9

11 files changed

Lines changed: 26 additions & 45 deletions

File tree

.github/workflows/benchmark.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,6 @@ on:
1212
- main
1313
- epic/*
1414
workflow_dispatch:
15-
inputs:
16-
specific-pip-packages:
17-
description: Run benchmarks with specific pip packages
18-
required: false
19-
type: string
2015

2116
jobs:
2217
benchmark:

.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: 9 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -17,34 +17,25 @@ 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 }}
29+
style:
30+
secrets:
31+
token: ${{ secrets.PAT }}
32+
uses: ComPWA/actions/.github/workflows/pre-commit.yml@v4.0
3533
pytest:
36-
uses: ComPWA/actions/.github/workflows/pytest.yml@v3.0
34+
uses: ComPWA/actions/.github/workflows/test.yml@v4.0
35+
secrets:
36+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
3737
with:
38-
additional-extras: jax numba pwa
39-
coverage-target: tensorwaves
38+
coverage-python-version: "3.13"
4039
macos-python-version: "3.10"
4140
multithreaded: false
42-
specific-pip-packages: ${{ inputs.specific-pip-packages }}
4341
test-output-path: tests/output/
44-
secrets:
45-
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
46-
style:
47-
if: inputs.specific-pip-packages == ''
48-
secrets:
49-
token: ${{ secrets.PAT }}
50-
uses: ComPWA/actions/.github/workflows/pre-commit.yml@v3.0

.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: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ repos:
1414
- id: check-useless-excludes
1515

1616
- repo: https://github.com/ComPWA/policy
17-
rev: 0.8.2rc0
17+
rev: 92f67859df253e75c6596a3fb3b72874d28c8401
1818
hooks:
1919
- id: check-dev-files
2020
args:
@@ -23,7 +23,6 @@ repos:
2323
- --pytest-single-threaded
2424
- --repo-name=tensorwaves
2525
- --repo-title=TensorWaves
26-
- --ci-test-extras=jax,numba,pwa
2726
- --type-checker=ty
2827
- --update-lock-files=outsource
2928
- id: colab-toc-visible
@@ -148,7 +147,7 @@ repos:
148147
- id: ty
149148
name: ty
150149
entry: ty check
151-
args: [--output-format=concise]
150+
args: [--no-progress, --output-format=concise]
152151
require_serial: true
153152
language: system
154153
types_or: [python, pyi, jupyter]

.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

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def get_tensorflow_url() -> str:
4040

4141
create_tensorflow_inventory()
4242
set_intersphinx_version_remapping({
43-
"ampform": {"0.15.12.dev18+gefa523898": "0.15.11"},
43+
"ampform": {"0.15.12.dev21+gff440da17": "0.15.11"},
4444
"matplotlib": {"3.5.1": "3.5.0"},
4545
"scipy": {"1.7.3": "1.7.1"},
4646
})

pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,7 @@ sequence = [
193193
cmd = """
194194
pytest benchmarks \
195195
--benchmark-autosave \
196+
--benchmark-json benchmarks/output.json \
196197
--durations=0 \
197198
-k benchmark
198199
"""
@@ -388,8 +389,7 @@ filterwarnings = [
388389
"ignore:Please use `spmatrix` from the `scipy.sparse` namespace.*:DeprecationWarning",
389390
"ignore:Protobuf gencode version .*:UserWarning",
390391
"ignore:The distutils package is deprecated and slated for removal.*:DeprecationWarning",
391-
"ignore:divide by zero encountered in divide:RuntimeWarning",
392-
"ignore:divide by zero encountered in true_divide:RuntimeWarning",
392+
"ignore:divide by zero encountered in (true_)?divide:RuntimeWarning",
393393
"ignore:invalid value encountered in .*:RuntimeWarning",
394394
"ignore:jax\\.xla_computation is deprecated\\. Please use the AOT APIs\\.:DeprecationWarning",
395395
"ignore:ml_dtypes\\.float8.*:DeprecationWarning",
@@ -618,6 +618,6 @@ possibly-unresolved-reference = "warn"
618618
unused-ignore-comment = "warn"
619619

620620
[tool.uv.sources]
621-
ampform = {git = "https://github.com/ComPWA/ampform", rev = "efa52389815763f82308b45af28b4f7c36cd5844"}
621+
ampform = {git = "https://github.com/ComPWA/ampform", rev = "ff440da177526ffd5b12cd8382db9f8a20f2cad1"}
622622
ampform-dpd = {git = "https://github.com/ComPWA/ampform-dpd", rev = "0d0dff484150f7e14bec5b3370aa2dcb790c1c22"}
623623
qrules = {git = "https://github.com/ComPWA/qrules", rev = "b80baecb7ecb687f46ff043e388a3d9077687d3c"}

0 commit comments

Comments
 (0)