From 2ab67d8661e1f0dc7db4e8b15d6919af409edb36 Mon Sep 17 00:00:00 2001 From: Robin Ole Heinemann Date: Wed, 8 Jan 2025 18:33:38 +0100 Subject: [PATCH] move lint ci to flakes --- .github/workflows/lint.yml | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 9d70d86f..caba5960 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -18,32 +18,29 @@ jobs: - uses: actions/checkout@v3 - uses: cachix/install-nix-action@v22 - with: - nix_path: nixpkgs=https://github.com/NixOS/nixpkgs/archive/880992dcc006a5e00dd0591446fdf723e6a51a64.tar.gz # keep in sync with shell.nix - - 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-shell --run true + run: nix --extra-experimental-features 'nix-command flakes' develop . - name: Setup backend pypackages cache uses: actions/cache@v3 with: path: | backend/__pypackages__/ - key: ${{ runner.os }}-${{ runner.arch }}-pypackages-${{ hashFiles('backend/pdm.lock', 'proto/transcribee_proto/*.py') }} + key: ${{ runner.os }}-${{ runner.arch }}-pypackages-${{ hashFiles('backend/uv.lock', 'proto/transcribee_proto/*.py') }} - name: Setup worker pypackages cache uses: actions/cache@v3 with: path: | worker/__pypackages__/ - key: ${{ runner.os }}-${{ runner.arch }}-pypackages-${{ hashFiles('worker/pdm.lock', 'proto/transcribee_proto/*.py') }} + key: ${{ runner.os }}-${{ runner.arch }}-pypackages-${{ hashFiles('worker/uv.lock', 'proto/transcribee_proto/*.py') }} - name: install dependencies - run: nix-shell --run ./packaging/install_dependencies.sh + run: nix --extra-experimental-features 'nix-command flakes' develop ./packaging/install_dependencies.sh - name: cache pre-commit env uses: actions/cache@v3 @@ -52,4 +49,4 @@ jobs: key: ${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('.pre-commit-config.yaml') }} - name: run pre-commit - run: nix-shell --run 'pre-commit run --show-diff-on-failure --color=always --all-files' + run: nix --extra-experimental-features 'nix-command flakes' develop --comand 'pre-commit run --show-diff-on-failure --color=always --all-files'