-
Notifications
You must be signed in to change notification settings - Fork 26
90 lines (83 loc) · 2.55 KB
/
pytest.yaml
File metadata and controls
90 lines (83 loc) · 2.55 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
name: Integration
on: # yamllint disable-line rule:truthy
push:
branches: ["main"]
pull_request:
branches: ["main"]
merge_group:
types: ["checks_requested"]
jobs:
lint:
name: "Lint"
runs-on: ubuntu-latest
steps:
- name: Update apt repositories
run: sudo apt update
- name: Install lint dependencies
run: sudo apt install -y yamllint aspell pre-commit
- name: Install project dependencies
run: sudo apt install -y libgpgme-dev libbtrfs-dev libvirt-dev
- name: "Clone Repository"
uses: actions/checkout@v6
- name: Set up Python
uses: actions/setup-python@v6
- name: Run linters
run: make lint
manifest:
name: "Manifest"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: ./.github/actions/testdeps
- name: Install integration test env
run: |
sudo apt update
sudo apt install -y python3-pytest golang
- name: Run integration tests via pytest
run: |
# use "-s" for now for easier debugging
sudo pytest -s -v test/test_manifest.py
build:
name: "Build"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: ./.github/actions/testdeps
- name: Install integration test env
run: |
sudo apt update
sudo apt install -y python3-pytest golang
- name: Run integration tests via pytest
run: |
# use "-s" for now for easier debugging
sudo pytest -s -v test/test_build.py
build-cross:
name: "Build (Cross-Architecture)"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: ./.github/actions/testdeps
- name: Install integration test env
run: |
sudo apt update
sudo apt install -y python3-pytest golang libvirt-dev
- name: Install cross build dependencies
run: sudo apt install -y qemu-user-static
- name: Run integration tests via pytest
run: |
# use "-s" for now for easier debugging
sudo pytest -s -v test/test_build_cross.py
smoke:
name: "Smoke"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: ./.github/actions/testdeps
- name: Install integration test env
run: |
sudo apt update
sudo apt install -y python3-pytest golang asciinema
- name: Run integration tests via pytest
run: |
# use "-s" for now for easier debugging
sudo pytest -s -v test/test_smoke.py