Skip to content

Commit

Permalink
Update lint-and-test.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
aclerc committed Sep 4, 2024
1 parent e997e1d commit 41da13d
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/lint-and-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ on:
branches: [ main ]
pull_request:

env:
python-version: "3.10"

permissions:
contents: read

Expand All @@ -24,17 +21,17 @@ jobs:
uses: actions/checkout@v4

- uses: actions/setup-python@v5
name: 'set up Python ${{ inputs.python-version }}'
name: 'set up Python ${{ matrix.python-version }}'
with:
python-version: ${{ env.python-version }}
python-version: ${{ matrix.python-version }}

- uses: actions/cache@v4
id: cache-venv
with:
path: ./.venv/
key: ${{ runner.os }}-venv-${{ hashFiles('**/dev-requirements.txt') }}
key: ${{ matrix.python-version }}-venv-${{ hashFiles('**/dev-requirements.txt') }}
restore-keys: |
${{ runner.os }}-venv-
${{ matrix.python-version }}-venv-
- name: 'create virtualenv and install dependencies'
if: steps.cache-venv.outputs.cache-hit != 'true'
Expand Down

0 comments on commit 41da13d

Please sign in to comment.