Skip to content

Commit

Permalink
👷 CI: Do not run external actions in nix-shell
Browse files Browse the repository at this point in the history
  • Loading branch information
phlmn committed Mar 9, 2024
1 parent f0ee354 commit 2275c8c
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,8 @@ jobs:
if: runner.os == 'macOS'
run: wait4path /nix/var/nix/profiles/per-user

- name: setup direnv
uses: JRMurr/[email protected]
with:
install-nix: "false" # we already install nix
cache-store: "false" # turned out to be faster without the cache
- name: Initialize nix environment
run: nix-shell --run true

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

- name: install dependencies
run: ./packaging/install_dependencies.sh
run: nix-shell --run ./packaging/install_dependencies.sh

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

- name: run pre-commit
run: pre-commit run --show-diff-on-failure --color=always --all-files
run: nix-shell --run 'pre-commit run --show-diff-on-failure --color=always --all-files'

0 comments on commit 2275c8c

Please sign in to comment.