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
16 changes: 16 additions & 0 deletions .github/workflows/pr-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,22 @@ jobs:
JWT_SECRET: "test-secret-do-not-use-in-production"
HAE_SHARED_SECRET: "test-hae-shared-secret-32-bytes-min"

# The install step above is `--require-hashes` from the lock followed by
# `--no-deps -e .`, so pyproject's own pins are never enforced - a bump that
# edits pyproject without regenerating the locks silently does nothing, and
# CI keeps testing the old versions. Without --upgrade, pip-compile keeps
# whatever the lock already pins, so this re-run is a no-op until pyproject
# and the locks disagree. Runs last so a drift failure never masks the
# lint/type/test results.
- name: Check lockfiles match pyproject
run: |
pip-compile --allow-unsafe --generate-hashes \
--output-file=requirements.lock pyproject.toml
pip-compile --allow-unsafe --extra=dev --generate-hashes \
--output-file=requirements-dev.lock pyproject.toml
git diff --exit-code -- requirements.lock requirements-dev.lock \
|| { echo "::error::Lockfiles are out of sync with pyproject.toml. Run the two pip-compile commands above in backend/ and commit the result."; exit 1; }

migrations:
name: Migrations — apply & check
runs-on: ubuntu-latest
Expand Down
4 changes: 3 additions & 1 deletion backend/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,9 @@ dev = [
"ruff>=0.4.0",
"mypy>=1.10.0",
"pip-audit>=2.7.0",
"pip-tools>=7.0.0",
# >=7.6.1: earlier releases import stdlib_pkgs from pip._internal, which
# pip 26.2 removed - pip-compile crashes on import under the pinned pip.
"pip-tools>=7.6.1",
]

[tool.hatch.build.targets.wheel]
Expand Down
Loading