-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (38 loc) · 1.23 KB
/
test.yml
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
31
32
33
34
35
36
37
38
39
40
41
42
name: "Test"
on:
push:
jobs:
tests:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Check Disk Space Before
run: df -h
- name: Remove Directories and Check Disk Space After
run: |
sudo rm -rf /usr/share/dotnet \
&& sudo rm -rf /opt/ghc \
&& sudo rm -rf "/usr/local/share/boost" \
&& sudo rm -rf "$AGENT_TOOLSDIRECTORY" \
&& df -h
- name: Install nix
uses: cachix/install-nix-action@v20
with:
nix_path: nixpkgs=channel:nixos-unstable
extra_nix_config: "system-features = nixos-test benchmark big-parallel kvm"
- name: Cache build on cachix
uses: cachix/cachix-action@v11
with:
name: cuda-maintainers
- name: Cache build on cachix
uses: cachix/cachix-action@v11
with:
name: tartavull
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
- name: Build Shell
run: nix develop --command bash -c "echo Build finished"
- name: Run pre-commit
run: nix develop --command bash -c "pre-commit run --all"
- name: Run pytest
run: nix develop --command bash -c "pytest"