Skip to content

Commit

Permalink
small changes
Browse files Browse the repository at this point in the history
  • Loading branch information
vanutp committed Dec 21, 2024
1 parent 5ffa5e0 commit 3f2033b
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,22 +19,26 @@ on:
jobs:
lint:
runs-on: ubuntu-latest
name: Lint
steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- uses: nicknovitski/nix-develop@9be7cfb4b10451d3390a75dc18ad0465bed4932a

- name: Load dependency cache
id: load-cache
uses: actions/cache@v4
with:
path: .venv
key: app-${{ runner.os }}-python-${{ env.pythonLocation }}-${{ hashFiles('poetry.lock') }}
- uses: nicknovitski/nix-develop@v1

- name: Install dependencies
run: |
poetry config virtualenvs.in-project true
poetry install
if: steps.load-cache.outputs.cache-hit != 'true'

- name: Check code style
if: github.event_name != 'push'
run: |
Expand Down Expand Up @@ -68,10 +72,9 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- uses: DeterminateSystems/nix-installer-action@main

- uses: DeterminateSystems/magic-nix-cache-action@main
- uses: nicknovitski/nix-develop@9be7cfb4b10451d3390a75dc18ad0465bed4932a

- name: Load dependency cache
id: load-cache
Expand All @@ -80,8 +83,6 @@ jobs:
path: .venv
key: app-${{ runner.os }}-python-${{ env.pythonLocation }}-${{ hashFiles('poetry.lock') }}

- uses: nicknovitski/nix-develop@v1

- name: Install dependencies
run: |
poetry config virtualenvs.in-project true
Expand Down

0 comments on commit 3f2033b

Please sign in to comment.