mirror of
https://github.com/vale981/poetry2nix
synced 2025-03-05 09:11:39 -05:00
ci: use nix commands
This commit is contained in:
parent
806eb84c20
commit
a86df00ebb
1 changed files with 3 additions and 3 deletions
6
.github/workflows/ci.yml
vendored
6
.github/workflows/ci.yml
vendored
|
@ -17,7 +17,7 @@ jobs:
|
|||
nix_path: nixpkgs=channel:nixos-unstable
|
||||
- uses: actions/checkout@v4
|
||||
- name: Check format
|
||||
run: nix-shell --packages jq --pure --run 'diff --unified overrides/build-systems.json <(jq --from-file overrides/sort-build-systems.jq --raw-output --sort-keys < overrides/build-systems.json)'
|
||||
run: nix run 'nixpkgs#jq' -- diff --unified overrides/build-systems.json <(jq --from-file overrides/sort-build-systems.jq --raw-output --sort-keys < overrides/build-systems.json)
|
||||
|
||||
nixpkgs-fmt:
|
||||
runs-on: ubuntu-latest
|
||||
|
@ -27,7 +27,7 @@ jobs:
|
|||
nix_path: nixpkgs=channel:nixos-unstable
|
||||
- uses: actions/checkout@v4
|
||||
- name: Check format
|
||||
run: nix-shell --arg packages 'pkgs:[ pkgs.nixpkgs-fmt ]' --run 'nixpkgs-fmt --check .'
|
||||
run: nix run 'nixpkgs#nixpkgs-fmt' -- --check .
|
||||
|
||||
black-fmt:
|
||||
runs-on: ubuntu-latest
|
||||
|
@ -41,7 +41,7 @@ jobs:
|
|||
name: poetry2nix
|
||||
signingKey: "VhaWuN3IyJVpWg+aZvTocVB+W8ziZKKRGLKR53Pkld3YRZxYOUfXZf0fvqF+LkqVW0eA60trVd5vsqNONpX9Hw=="
|
||||
- name: Check format
|
||||
run: nix-shell --arg packages 'pkgs:[ pkgs.p2nix-tools.env ]' --run 'black --check .'
|
||||
run: nix develop -c black --check .
|
||||
|
||||
nix-matrix:
|
||||
runs-on: ubuntu-latest
|
||||
|
|
Loading…
Add table
Reference in a new issue