-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci(precheck): speed up precheck tests
- Loading branch information
Showing
2 changed files
with
14 additions
and
8 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,10 +14,10 @@ jobs: | |
|
||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.11' | ||
cache: 'pip' | ||
|
@@ -34,7 +34,17 @@ jobs: | |
pdk_root: ${{ env.PDK_ROOT }} | ||
|
||
- name: Install nix | ||
uses: cachix/install-nix-action@v20 | ||
uses: cachix/install-nix-action@v23 | ||
|
||
- name: Cache Nix packages | ||
uses: rikhuijzer/[email protected] | ||
with: | ||
key: nix-${{ hashFiles('precheck/default.nix') }} | ||
nix_file: 'precheck/default.nix' | ||
|
||
- name: Build Nix packages | ||
working-directory: precheck | ||
run: nix-build | ||
|
||
- name: Run tests | ||
working-directory: precheck | ||
|
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