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
9 changes: 6 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches: [main]
pull_request:
workflow_dispatch:
schedule:
- cron: "17 6 * * 1"

Expand All @@ -16,7 +17,7 @@ concurrency:

jobs:
package:
uses: gojiplus/py-canon/.github/workflows/reusable-ci.yml@07c6621880b82afd28ab7230eab6e79f96d080e3 # v1
uses: gojiplus/py-canon/.github/workflows/reusable-ci.yml@6381ef50660166e3836a2e687f81b5f9b5640b2e # v1
with:
wheel-import: queue_shift

Expand All @@ -25,12 +26,14 @@ jobs:
timeout-minutes: 30
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: astral-sh/setup-uv@c771a70e6277c0a99b617c7a806ffedaca235ff9 # v9.0.0
- uses: astral-sh/setup-uv@bec219d24cd3e171d82865faccec33120bb574f4 # v10.1.0
- name: Sync environment
run: uv sync --frozen --all-groups --all-extras
- name: Install TeX
run: |
sudo apt-get update
sudo apt-get install --yes texlive-latex-extra texlive-bibtex-extra
- name: Check research artifacts
run: make research-check
run: |
uv run pytest experiments/tests
make research-check
16 changes: 13 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ Issues = "https://github.com/finite-sample/queue-shift/issues"
Repository = "https://github.com/finite-sample/queue-shift"

[build-system]
requires = ["uv_build>=0.12.3,<0.13"]
requires = ["uv_build>=0.12.5,<0.13"]
build-backend = "uv_build"

[tool.uv.build-backend]
Expand Down Expand Up @@ -79,23 +79,33 @@ convention = "google"
[tool.ruff.lint.per-file-ignores]
"tests/**" = ["S101", "D", "ARG", "SLF"]
"experiments/**" = ["T201"]
"experiments/tests/**" = ["S101", "D", "ARG", "SLF"]
"experiments/analyze_*.py" = ["E501"]

[tool.pyright]
include = ["src"]
typeCheckingMode = "standard"

[tool.pydoclint]
exclude = '\.venv|tests|docs|experiments'
style = "google"
arg-type-hints-in-docstring = false
check-return-types = false
check-class-attributes = false
allow-init-docstring = true
exclude = '\\.venv|tests|experiments'

[tool.pytest.ini_options]
minversion = "8"
log_level = "INFO"
xfail_strict = true
addopts = "-ra --strict-config --strict-markers"
filterwarnings = ["error"]
pythonpath = ["."]
testpaths = ["tests"]
testpaths = ["tests", "experiments/tests"]

[tool.coverage.run]
source = ["src"]

[tool.preen]
# Custom research workflows are maintained here rather than generated by Copier.
skip_checks = ["template"]
Loading