Skip to content

Commit

Permalink
ci: fix bad interpreter error
Browse files Browse the repository at this point in the history
Remove virtual environment caching to avoid bad interpreter issues
  • Loading branch information
samuelwnaylor committed Sep 25, 2024
1 parent d6d1291 commit 4fdf05b
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions .github/workflows/lint-and-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,24 +25,11 @@ jobs:
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- uses: actions/cache@v4
id: cache-venv
with:
path: ./.venv/
key: ${{ matrix.python-version }}-venv-${{ hashFiles('**/pyproject.toml') }}
restore-keys: |
${{ matrix.python-version }}-venv
- name: 'create environment and install dependencies'
if: steps.cache-venv.outputs.cache-hit != 'true'
run: |
python -m venv .venv
source .venv/bin/activate
pip install .[dev]
- name: 'update dependencies'
if: steps.cache-venv.outputs.cache-hit == 'true'
run: |
source .venv/bin/activate
pip install -U .[dev]
- name: "lint check & test"
run: |
source .venv/bin/activate
Expand Down

0 comments on commit 4fdf05b

Please sign in to comment.