Skip to content

Commit 2fe68ef

Browse files
committed
Remove cache
1 parent 1e2d21a commit 2fe68ef

File tree

1 file changed

+26
-23
lines changed

1 file changed

+26
-23
lines changed

.github/workflows/code_coverage.yml

Lines changed: 26 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -9,26 +9,29 @@ jobs:
99
matrix:
1010
python-version: [ "3.11.3" ]
1111
steps:
12-
- uses: actions/checkout@v4
13-
- uses: eifinger/setup-rye@v3
14-
id: setup-rye
15-
with:
16-
enable-cache: true
17-
cache-prefix: ${{ matrix.python-version }}
18-
- name: Pin python-version ${{ matrix.python-version }}
19-
if: steps.setup-rye.outputs.cache-hit != 'true'
20-
run: rye pin ${{ matrix.python-version }}
21-
- name: Install dependencies
22-
if: steps.setup-rye.outputs.cache-hit != 'true'
23-
run: |
24-
rye sync --no-lock
25-
- name: Lint
26-
run: |
27-
rye lint -a
28-
- name: Test
29-
run: |
30-
rye run pytest
31-
- name: Upload coverage to Codecov
32-
uses: codecov/codecov-action@v1
33-
with:
34-
file: ./htmlcov/index.html
12+
- uses: actions/checkout@v4
13+
- uses: eifinger/setup-rye@v3
14+
id: setup-rye
15+
with:
16+
cache-prefix: ${{ matrix.python-version }}
17+
18+
- name: Pin python-version ${{ matrix.python-version }}
19+
run: rye pin ${{ matrix.python-version }}
20+
21+
- name: Install dependencies
22+
if: steps.setup-rye.outputs.cache-hit != 'true'
23+
run: rye sync --no-lock
24+
25+
- name: Activate Rye environment
26+
run: echo "source $(rye env show)/bin/activate" >> $GITHUB_ENV
27+
28+
- name: Lint
29+
run: rye lint -a
30+
31+
- name: Test
32+
run: rye run pytest
33+
34+
- name: Upload coverage to Codecov
35+
uses: codecov/codecov-action@v1
36+
with:
37+
file: ./htmlcov/index.html

0 commit comments

Comments
 (0)