Skip to content

Commit

Permalink
Remove cache
Browse files Browse the repository at this point in the history
  • Loading branch information
horrormyth committed Jun 3, 2024
1 parent 1e2d21a commit 2fe68ef
Showing 1 changed file with 26 additions and 23 deletions.
49 changes: 26 additions & 23 deletions .github/workflows/code_coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,26 +9,29 @@ jobs:
matrix:
python-version: [ "3.11.3" ]
steps:
- uses: actions/checkout@v4
- uses: eifinger/setup-rye@v3
id: setup-rye
with:
enable-cache: true
cache-prefix: ${{ matrix.python-version }}
- name: Pin python-version ${{ matrix.python-version }}
if: steps.setup-rye.outputs.cache-hit != 'true'
run: rye pin ${{ matrix.python-version }}
- name: Install dependencies
if: steps.setup-rye.outputs.cache-hit != 'true'
run: |
rye sync --no-lock
- name: Lint
run: |
rye lint -a
- name: Test
run: |
rye run pytest
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
file: ./htmlcov/index.html
- uses: actions/checkout@v4
- uses: eifinger/setup-rye@v3
id: setup-rye
with:
cache-prefix: ${{ matrix.python-version }}

- name: Pin python-version ${{ matrix.python-version }}
run: rye pin ${{ matrix.python-version }}

- name: Install dependencies
if: steps.setup-rye.outputs.cache-hit != 'true'
run: rye sync --no-lock

- name: Activate Rye environment
run: echo "source $(rye env show)/bin/activate" >> $GITHUB_ENV

- name: Lint
run: rye lint -a

- name: Test
run: rye run pytest

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
file: ./htmlcov/index.html

0 comments on commit 2fe68ef

Please sign in to comment.