From 2275c8cf92f8517a8c3fabd5470f8339c4779940 Mon Sep 17 00:00:00 2001 From: Philipp Mandler Date: Fri, 8 Mar 2024 16:15:15 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7=20CI:=20Do=20not=20run=20external?= =?UTF-8?q?=20actions=20in=20nix-shell?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/lint.yml | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 5e7eb649..9d70d86f 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -25,11 +25,8 @@ jobs: if: runner.os == 'macOS' run: wait4path /nix/var/nix/profiles/per-user - - name: setup direnv - uses: JRMurr/direnv-nix-action@v4.1.0 - 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 @@ -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 @@ -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'