-
Notifications
You must be signed in to change notification settings - Fork 13
40 lines (40 loc) · 1.43 KB
/
Copy pathtest.yml
File metadata and controls
40 lines (40 loc) · 1.43 KB
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
name: "Test"
on:
pull_request:
push:
schedule:
- cron: '5 19 * * 5' # At 19:05 on Friday
jobs:
nixos-21-11:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2.3.4
- uses: cachix/install-nix-action@v20
with:
nix_path: nixpkgs=channel:nixos-21.11
- run: nix-build --arg runMypy false # TODO run mypy
- run: nix-shell --command 'pytest -v tests/ acceptance_tests'
- run: |
nix-env -if default.nix --arg runMypy false && nix-shell -p bats --command './acceptance_tests/test_command.sh'
nixos-22-11:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2.3.4
- uses: cachix/install-nix-action@v20
with:
nix_path: nixpkgs=channel:nixos-22.11
- run: nix-build --arg runMypy false # TODO run mypy
- run: nix-shell --command 'pytest -v tests/ acceptance_tests'
- run: |
nix-env -if default.nix --arg runMypy false && nix-shell -p bats --command './acceptance_tests/test_command.sh'
nixos-unstable:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2.3.4
- uses: cachix/install-nix-action@v20
with:
nix_path: nixpkgs=channel:nixos-unstable
- run: nix-build --arg runMypy false # TODO run mypy in unstable
- run: nix-shell --command 'pytest -v tests/ acceptance_tests'
- run: |
nix-env -if default.nix --arg runMypy true && nix-shell -p bats --command './acceptance_tests/test_command.sh'