Skip to content

Commit

Permalink
Use caching
Browse files Browse the repository at this point in the history
  • Loading branch information
raidensakura committed Mar 30, 2024
1 parent 3a03b5c commit 9770549
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,16 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
architecture: x64
- name: Set up Poetry
uses: abatilo/[email protected]
- name: Install dependencies
run: |
poetry install --no-root --only dev
- uses: Gr1N/setup-poetry@v9
- name: Cache poetry
id: cache-poetry
uses: actions/[email protected]
with:
path: ~/.cache/pypoetry/virtualenvs
key: ${{ runner.os }}-poetry-${{ hashFiles('poetry.lock') }}
- name: Maybe install dependencies
if: steps.cache-venv.outputs.cache-hit != 'true'
run: poetry install --no-root --only dev
- name: Ruff
run: poetry run ruff . --no-fix --config pyproject.toml
continue-on-error: true
Expand Down

0 comments on commit 9770549

Please sign in to comment.