.github/workflows/test-import-using-nix.yml #1886
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
workflow_dispatch: # allow manual execution | |
schedule: | |
# run daily at 10:00am | |
- cron: '0 10 * * *' | |
jobs: | |
nix-check-and-import: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- uses: cachix/install-nix-action@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 |