-
-
Notifications
You must be signed in to change notification settings - Fork 301
30 lines (28 loc) · 1019 Bytes
/
test-import-using-nix.yml
File metadata and controls
30 lines (28 loc) · 1019 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
on:
workflow_dispatch: # allow manual execution
schedule:
# run daily at 10:00am
- cron: '0 10 * * *'
jobs:
nix-check-and-import:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-depth: 0
- uses: cachix/install-nix-action@95a8068e317b8def9482980abe762f36c77ccc99 # v11
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
with:
nix_path: nixpkgs=https://github.com/NixOS/nixpkgs/archive/20.09.tar.gz
install_url: https://github.com/numtide/nix-flakes-installer/releases/download/nix-3.0pre20201007_5257a25/install
extra_nix_config: |
experimental-features = nix-command flakes
- name: run checks & test import
run: |
cd etc/nix
./get-latest-pypi-deps-db.sh --in-place
nix --print-build-logs flake check
nix-shell --run ./test-import-using-nix.sh