Skip to content
Closed
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
39 changes: 39 additions & 0 deletions .github/workflows/pinned.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Pinned Requirements Check

Check warning on line 1 in .github/workflows/pinned.yml

View workflow job for this annotation

GitHub Actions / precommit

1:1 [document-start] missing document start "---"

on:
push:
branches-ignore:
- auto-backport-of-pr-[0-9]+
- v[0-9]+.[0-9]+.[0-9x]+-doc
pull_request:
branches-ignore:
- v[0-9]+.[0-9]+.[0-9x]+-doc
paths:
- 'pyproject.toml'
- 'ci/fully-pinned-requirements.txt'
- 'ci/generate_fully_pinned.py'
workflow_dispatch:

permissions:
contents: read

jobs:
pinned:
runs-on: ubuntu-latest
name: "Pinned deps check"
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: false
- uses: actions/setup-python@v5
Comment thread
github-advanced-security[bot] marked this conversation as resolved.
Fixed
with:
python-version: '3.12'
- name: Install uv
uses: astral-sh/setup-uv@v5
with:
enable-cache: true
- name: Check fully-pinned file is up to date
run: uv run python ci/generate_fully_pinned.py --check
- name: Install from fully-pinned file (bug-fix branch preview)
run: pip install --require-hashes --dry-run -r ci/fully-pinned-requirements.txt
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ jobs:
path: ~/.cache/pip
key: |
${{ matrix.os }}-py${{ matrix.python-version }}-pip-${{
hashFiles('pyproject.toml', 'ci/minver-requirements.txt') }}
hashFiles('pyproject.toml', 'ci/minver-requirements.txt', 'ci/fully-pinned-requirements.txt') }}
restore-keys: |
${{ matrix.os }}-py${{ matrix.python-version }}-pip-
- name: Cache pip
Expand Down
Loading
Loading