Skip to content

Commit

Permalink
lint: use newer nix install action with flakes enbled
Browse files Browse the repository at this point in the history
  • Loading branch information
phlmn committed Jan 9, 2025
1 parent 456589c commit a5973a0
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,14 @@ jobs:
steps:
- uses: actions/checkout@v3

- uses: cachix/install-nix-action@v22
- uses: cachix/install-nix-action@v30

- name: Wait for nix daemon to start
if: runner.os == 'macOS'
run: wait4path /nix/var/nix/profiles/per-user

- name: Initialize nix environment
run: nix --extra-experimental-features 'nix-command flakes' develop .
run: nix develop .

- name: Setup backend pypackages cache
uses: actions/cache@v3
Expand All @@ -40,7 +41,7 @@ jobs:
key: ${{ runner.os }}-${{ runner.arch }}-pypackages-${{ hashFiles('worker/uv.lock', 'proto/transcribee_proto/*.py') }}

- name: install dependencies
run: nix --extra-experimental-features 'nix-command flakes' develop --command ./packaging/install_dependencies.sh
run: nix develop --command ./packaging/install_dependencies.sh

- name: cache pre-commit env
uses: actions/cache@v3
Expand All @@ -49,4 +50,4 @@ jobs:
key: ${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('.pre-commit-config.yaml') }}

- name: run pre-commit
run: nix --extra-experimental-features 'nix-command flakes' develop --command pre-commit run --show-diff-on-failure --color=always --all-files
run: nix develop --command pre-commit run --show-diff-on-failure --color=always --all-files

0 comments on commit a5973a0

Please sign in to comment.