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: 4 additions & 5 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,12 @@ jobs:
uses: ./cryptography-base/.github/actions/fetch-vectors

- name: Setup python
id: setup-python
uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
uses: astral-sh/setup-uv@bec219d24cd3e171d82865faccec33120bb574f4 # v10.1.0
with:
version-file: cryptography-pr/ci-constraints-requirements.txt
python-version: "3.11"
enable-cache: false

- name: Install uv
run: pip install -c ./cryptography-pr/ci-constraints-requirements.txt uv
- name: Create virtualenv (base)
run: |
uv venv .venv-base
Expand All @@ -67,4 +66,4 @@ jobs:
run: .venv-pr/bin/pytest --benchmark-enable --benchmark-only ./cryptography-pr/tests/bench/ --benchmark-json=bench-pr.json --x509-limbo-root=x509-limbo/

- name: Compare results
run: python ./cryptography-pr/.github/bin/compare_benchmarks.py bench-base.json bench-pr.json | tee -a $GITHUB_STEP_SUMMARY
run: .venv-pr/bin/python ./cryptography-pr/.github/bin/compare_benchmarks.py bench-base.json bench-pr.json | tee -a $GITHUB_STEP_SUMMARY
13 changes: 7 additions & 6 deletions .github/workflows/linkcheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,18 @@ jobs:
persist-credentials: false
- name: Setup python
id: setup-python
uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
uses: astral-sh/setup-uv@bec219d24cd3e171d82865faccec33120bb574f4 # v10.1.0
with:
python-version: 3.11
version-file: ci-constraints-requirements.txt
python-version: "3.11"
activate-environment: true
cache-dependency-glob: ci-constraints-requirements.txt
- name: Cache rust and pip
uses: ./.github/actions/cache
timeout-minutes: 2
with:
# This creates the same key as the docs job (as long as they have the same
# python version)
key: 3.11-${{ steps.setup-python.outputs.python-version }}
- run: python -m pip install -c ci-constraints-requirements.txt 'nox[uv]'
key: ${{ steps.setup-python.outputs.python-runtime-id }}
- run: uv pip install -c ci-constraints-requirements.txt 'nox[uv]'
- name: Build nox environment
run: |
nox -v --install-only -s docs-linkcheck
Expand Down
14 changes: 6 additions & 8 deletions .github/workflows/pypi-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,19 +42,17 @@ jobs:
echo "PYPI_URL=https://test.pypi.org/legacy/" >> $GITHUB_ENV
if: github.event_name == 'workflow_dispatch' && github.event.inputs.environment == 'testpypi'

- name: Setup python
uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
with:
python-version: '3.14'
timeout-minutes: 3

- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
sparse-checkout: ci-constraints-requirements.txt
sparse-checkout-cone-mode: false
persist-credentials: false

- run: python -m pip install -c ci-constraints-requirements.txt 'uv'
- name: Setup uv
uses: astral-sh/setup-uv@bec219d24cd3e171d82865faccec33120bb574f4 # v10.1.0
with:
version-file: ci-constraints-requirements.txt
enable-cache: false
timeout-minutes: 3

- uses: dawidd6/action-download-artifact@d63b86af1b34672e53c440b1b83979861906bad7 # v24
with:
Expand Down
Loading