Skip to content

Commit

Permalink
Testing out chaching the linting venv
Browse files Browse the repository at this point in the history
  • Loading branch information
jcadam14 committed Feb 1, 2024
1 parent 138e469 commit 8b9b552
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/linters.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ jobs:
pip install poetry
poetry config virtualenvs.create false
poetry install --only linters
- name: Cache venv
uses: actions/cache@v4
with:
path: ./.venv
key: ${{ runner.os }}-venv-${{ hashFiles('**/poetry.lock') }}
- name: Run black
run: |
poetry run black --check .
Expand All @@ -34,6 +39,11 @@ jobs:
pip install poetry
poetry config virtualenvs.create false
poetry install --only linters
- name: Cache venv
uses: actions/cache@v4
with:
path: ./.venv
key: ${{ runner.os }}-venv-${{ hashFiles('**/poetry.lock') }}
- name: Run ruff
run: |
poetry run ruff .

0 comments on commit 8b9b552

Please sign in to comment.