mirror of
https://github.com/vale981/poetry2nix
synced 2025-03-04 08:41:42 -05:00
.github: Hard code cachix key in workflow yaml
So that contributors can iterate on PRs and benefit from caching.
This commit is contained in:
parent
bee08d0554
commit
64ee2bfe1f
1 changed files with 9 additions and 1 deletions
10
.github/workflows/ci.yml
vendored
10
.github/workflows/ci.yml
vendored
|
@ -21,6 +21,10 @@ jobs:
|
|||
with:
|
||||
nix_path: nixpkgs=channel:nixos-unstable
|
||||
- uses: actions/checkout@v2.4.0
|
||||
- uses: cachix/cachix-action@v10
|
||||
with:
|
||||
name: poetry2nix
|
||||
signingKey: "VhaWuN3IyJVpWg+aZvTocVB+W8ziZKKRGLKR53Pkld3YRZxYOUfXZf0fvqF+LkqVW0eA60trVd5vsqNONpX9Hw=="
|
||||
- name: Check format
|
||||
run: nix-shell --arg packages 'pkgs:[ pkgs.p2nix-tools.py2-astparse ]' --run 'git ls-files | grep -Pv "^tools" | grep -P "\.py$" | xargs py2-astparse'
|
||||
|
||||
|
@ -31,6 +35,10 @@ jobs:
|
|||
with:
|
||||
nix_path: nixpkgs=channel:nixos-unstable
|
||||
- uses: actions/checkout@v2.4.0
|
||||
- uses: cachix/cachix-action@v10
|
||||
with:
|
||||
name: poetry2nix
|
||||
signingKey: "VhaWuN3IyJVpWg+aZvTocVB+W8ziZKKRGLKR53Pkld3YRZxYOUfXZf0fvqF+LkqVW0eA60trVd5vsqNONpX9Hw=="
|
||||
- name: Check format
|
||||
run: nix-shell --arg packages 'pkgs:[ pkgs.p2nix-tools.env ]' --run 'black --check .'
|
||||
|
||||
|
@ -63,5 +71,5 @@ jobs:
|
|||
- uses: cachix/cachix-action@v10
|
||||
with:
|
||||
name: poetry2nix
|
||||
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
|
||||
signingKey: "VhaWuN3IyJVpWg+aZvTocVB+W8ziZKKRGLKR53Pkld3YRZxYOUfXZf0fvqF+LkqVW0eA60trVd5vsqNONpX9Hw=="
|
||||
- run: nix-shell --arg packages 'pkgs:[ pkgs.nix-build-uncached ]' --run 'nix-build-uncached -build-flags "-L" --keep-going --show-trace tests/default.nix -A ${{ matrix.attr }}'
|
||||
|
|
Loading…
Add table
Reference in a new issue