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 8, 2024
1 parent 19a729b commit 65df35a
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,6 @@ 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: Setup backend pypackages cache
uses: actions/cache@v3
with:
Expand All @@ -46,7 +40,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 +49,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 65df35a

Please sign in to comment.