Skip to content

Commit

Permalink
move lint ci to flakes
Browse files Browse the repository at this point in the history
  • Loading branch information
rroohhh committed Jan 8, 2025
1 parent 519c0d0 commit 2ab67d8
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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'

0 comments on commit 2ab67d8

Please sign in to comment.