Skip to content

Commit d727a4d

Browse files
authored
Repair dependency CI and wheel validation (#6)
* Repair dependency CI and separate research tests from wheel tests * Declare custom research workflow ownership
1 parent 48ce0dd commit d727a4d

3 files changed

Lines changed: 19 additions & 6 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
push:
55
branches: [main]
66
pull_request:
7+
workflow_dispatch:
78
schedule:
89
- cron: "17 6 * * 1"
910

@@ -16,7 +17,7 @@ concurrency:
1617

1718
jobs:
1819
package:
19-
uses: gojiplus/py-canon/.github/workflows/reusable-ci.yml@07c6621880b82afd28ab7230eab6e79f96d080e3 # v1
20+
uses: gojiplus/py-canon/.github/workflows/reusable-ci.yml@6381ef50660166e3836a2e687f81b5f9b5640b2e # v1
2021
with:
2122
wheel-import: queue_shift
2223

@@ -25,12 +26,14 @@ jobs:
2526
timeout-minutes: 30
2627
steps:
2728
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
28-
- uses: astral-sh/setup-uv@c771a70e6277c0a99b617c7a806ffedaca235ff9 # v9.0.0
29+
- uses: astral-sh/setup-uv@bec219d24cd3e171d82865faccec33120bb574f4 # v10.1.0
2930
- name: Sync environment
3031
run: uv sync --frozen --all-groups --all-extras
3132
- name: Install TeX
3233
run: |
3334
sudo apt-get update
3435
sudo apt-get install --yes texlive-latex-extra texlive-bibtex-extra
3536
- name: Check research artifacts
36-
run: make research-check
37+
run: |
38+
uv run pytest experiments/tests
39+
make research-check
File renamed without changes.

‎pyproject.toml‎

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ Issues = "https://github.com/finite-sample/queue-shift/issues"
3838
Repository = "https://github.com/finite-sample/queue-shift"
3939

4040
[build-system]
41-
requires = ["uv_build>=0.12.3,<0.13"]
41+
requires = ["uv_build>=0.12.5,<0.13"]
4242
build-backend = "uv_build"
4343

4444
[tool.uv.build-backend]
@@ -79,23 +79,33 @@ convention = "google"
7979
[tool.ruff.lint.per-file-ignores]
8080
"tests/**" = ["S101", "D", "ARG", "SLF"]
8181
"experiments/**" = ["T201"]
82+
"experiments/tests/**" = ["S101", "D", "ARG", "SLF"]
8283
"experiments/analyze_*.py" = ["E501"]
8384

8485
[tool.pyright]
8586
include = ["src"]
8687
typeCheckingMode = "standard"
8788

8889
[tool.pydoclint]
90+
exclude = '\.venv|tests|docs|experiments'
8991
style = "google"
9092
arg-type-hints-in-docstring = false
9193
check-return-types = false
9294
check-class-attributes = false
9395
allow-init-docstring = true
94-
exclude = '\\.venv|tests|experiments'
9596

9697
[tool.pytest.ini_options]
98+
minversion = "8"
99+
log_level = "INFO"
100+
xfail_strict = true
101+
addopts = "-ra --strict-config --strict-markers"
102+
filterwarnings = ["error"]
97103
pythonpath = ["."]
98-
testpaths = ["tests"]
104+
testpaths = ["tests", "experiments/tests"]
99105

100106
[tool.coverage.run]
101107
source = ["src"]
108+
109+
[tool.preen]
110+
# Custom research workflows are maintained here rather than generated by Copier.
111+
skip_checks = ["template"]

0 commit comments

Comments
 (0)