Skip to content
Draft
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
24 changes: 20 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,16 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
id: setup-python
- name: Download requirements-dev.txt
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
with:
name: requirements-dev.txt
- name: 🏗 Restore base Python virtual environment
id: cache-venv
uses: actions/cache@0400d5f644dc74513175e3cd8d07132dd4860809 # v4.2.4
with:
path: .venv
key: venv-${{ runner.os }}-${{ runner.arch }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('requirements-dev.txt', 'Cargo.lock') }}
- name: 🏗 Install uv and Python
uses: astral-sh/setup-uv@3259c6206f993105e3a61b142c2d97bf4b9ef83d # v7.1.0
- uses: actions-rust-lang/setup-rust-toolchain@1780873c7b576612439a134613cc4cc74ce5538c # v1.15.2
Expand All @@ -169,11 +179,8 @@ jobs:
cache-key: ${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('Cargo.lock') }}
- name: Install cargo-llvm-cov
run: cargo install cargo-llvm-cov
- name: Download requirements-dev.txt
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
with:
name: requirements-dev.txt
- name: Prepare env and install requirements
if: steps.cache-venv.outputs.cache-hit != 'true'
shell: bash
run: |
uv venv -p ${{ steps.setup-python.outputs.python-version }}
Expand Down Expand Up @@ -388,12 +395,21 @@ jobs:
uses: astral-sh/setup-uv@3259c6206f993105e3a61b142c2d97bf4b9ef83d # v7.1.0
- name: 🏗 Setup Python
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
id: setup-python
with:
python-version: ${{ needs.info.outputs.default_python_version }}
- name: Download requirements-dev.txt
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
with:
name: requirements-dev.txt
- name: 🏗 Install uv
uses: astral-sh/setup-uv@b75a909f75acd358c2196fb9a5f1299a9a8868a4 # v6.7.0
with:
cache-suffix: coodspeed-${{ hashFiles('requirements-dev.txt') }}
prune-cache: false
- uses: actions-rust-lang/setup-rust-toolchain@2fcdc490d667999e01ddbbf0f2823181beef6b39 # v1.15.0
with:
cache-key: coodspeed-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('Cargo.lock') }}
- name: 🏗 Install the project
run: |
uv pip install --no-build --system -r requirements-dev.txt
Expand Down
Loading