-
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
👷 CI: Do not run external actions in nix-shell
- Loading branch information
Showing
1 changed file
with
2 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: | ||
|
@@ -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 | ||
|
@@ -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' |