File tree 1 file changed +16
-5
lines changed
1 file changed +16
-5
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- name : nix
2
+ name : Test Nix
3
3
on : [push, pull_request]
4
4
jobs :
5
5
test :
@@ -11,12 +11,23 @@ jobs:
11
11
run :
12
12
working-directory : ./
13
13
steps :
14
- - uses : actions/checkout@v2.3.4
15
- - uses : cachix/install-nix-action@v14.1
14
+ - uses : actions/checkout@v3
15
+ - uses : cachix/install-nix-action@v20
16
16
with :
17
17
nix_path : nixpkgs=channel:nixos-unstable
18
18
name : fipy
19
19
authToken : ' ${{ secrets.CACHIX_AUTH_TOKEN }}'
20
20
extraPullNames : nix-community
21
- - run : nix-shell --pure --command "python setup.py test"
22
- - run : nix-shell --pure --command "py.test --nbval --sanitize-with examples/sanitize.cfg examples/index.ipynb"
21
+ - run : echo "UID=${UID}" >> $GITHUB_ENV
22
+ - uses : actions/cache/restore@v3
23
+ with :
24
+ path : /run/user/${{ env.UID }}/http_cache.sqlite
25
+ key : ${{ runner.os}}-http_cache.sqlite
26
+ - run : nix develop --command bash -c "python setup.py test"
27
+ - run : nix develop --command bash -c "py.test --nbval --sanitize-with examples/sanitize.cfg examples/index.ipynb"
28
+ - uses : actions/cache/save@v3
29
+ if : always()
30
+ with :
31
+ path : /run/user/${{ env.UID }}/http_cache.sqlite
32
+ key : ${{ runner.os}}-http_cache.sqlite
33
+
You can’t perform that action at this time.
0 commit comments