Skip to content

Commit

Permalink
TST: disable uv cache pruning in most CI
Browse files Browse the repository at this point in the history
  • Loading branch information
neutrinoceros committed Feb 18, 2025
1 parent 9b91589 commit e0e2498
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ jobs:
- name: Checkout repo
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: astral-sh/setup-uv@4db96194c378173c656ce18a155ffc14a9fc4355 # v5.2.2
with:
enable-cache: true
prune-cache: false
- name: Build wheels for CPython
uses: pypa/cibuildwheel@ee63bf16da6cddfb925f542f2c7b59ad50e93969 # v2.22.0
with:
Expand All @@ -44,6 +47,9 @@ jobs:
- name: Checkout repo
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: astral-sh/setup-uv@4db96194c378173c656ce18a155ffc14a9fc4355 # v5.2.2
with:
enable-cache: true
prune-cache: false
- name: Build sdist
run: |
uv sync --only-dev
Expand Down
14 changes: 14 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ jobs:
- name: Checkout Source
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: astral-sh/setup-uv@4db96194c378173c656ce18a155ffc14a9fc4355 # v5.2.2
with:
enable-cache: true
prune-cache: false
- name: Check build
run: |
uv sync --only-dev
Expand Down Expand Up @@ -59,6 +62,8 @@ jobs:
- uses: astral-sh/setup-uv@4db96194c378173c656ce18a155ffc14a9fc4355 # v5.2.2
with:
python-version: ${{ matrix.python-version }}
enable-cache: true
prune-cache: false

- run: uv sync --group covcheck --no-install-project
- if: ${{ matrix.marker != 'PY_LIB' }}
Expand Down Expand Up @@ -96,6 +101,9 @@ jobs:
echo "UV_PYTHON_PREFERENCE=only-system" >> $GITHUB_ENV
echo "UV_RESOLUTION=lowest-direct" >> $GITHUB_ENV
- uses: astral-sh/setup-uv@4db96194c378173c656ce18a155ffc14a9fc4355 # v5.2.2
with:
enable-cache: true
prune-cache: false
- run: |
uv sync --only-dev
uv sync --no-editable --group test
Expand Down Expand Up @@ -157,6 +165,8 @@ jobs:
- uses: astral-sh/setup-uv@4db96194c378173c656ce18a155ffc14a9fc4355 # v5.2.2
with:
python-version: '3.13'
enable-cache: true
prune-cache: false
- run: |
uv sync --only-dev
uv sync --no-editable --group concurrency
Expand All @@ -175,6 +185,8 @@ jobs:
- uses: astral-sh/setup-uv@4db96194c378173c656ce18a155ffc14a9fc4355 # v5.2.2
with:
python-version: '3.13'
enable-cache: true
prune-cache: false

- uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
with:
Expand Down Expand Up @@ -213,6 +225,8 @@ jobs:
- uses: astral-sh/setup-uv@4db96194c378173c656ce18a155ffc14a9fc4355 # v5.2.2
with:
python-version: ${{ matrix.python-version }}
enable-cache: true
prune-cache: false

- run: |
uv sync --only-dev
Expand Down

0 comments on commit e0e2498

Please sign in to comment.