-
Notifications
You must be signed in to change notification settings - Fork 383
72 lines (65 loc) · 1.87 KB
/
test.yml
File metadata and controls
72 lines (65 loc) · 1.87 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
name: Python CI
on: [push, workflow_dispatch]
jobs:
unit-tests:
uses: ./.github/workflows/setup-python.yml
strategy:
matrix:
os: [ubuntu-latest]
python-version: [3.9, 3.13]
include:
- os: ubuntu-22.04
python-version: 3.7
fail-fast: false
with:
python-version: ${{ matrix.python-version }}
os: ${{ matrix.os }}
steps:
- name: Run Unit Tests
run: tox -e py -- tests/unit
integration-tests:
needs: unit-tests
uses: ./.github/workflows/setup-python.yml
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
python-version: [3.9]
splunk-version: [9.4, latest]
include:
- os: ubuntu-22.04
python-version: 3.7
splunk-version: "9.1"
- os: ubuntu-latest
python-version: 3.13
splunk-version: latest
steps:
- name: Run docker compose
run: SPLUNK_VERSION=${{ matrix.splunk-version }} docker compose up -d
- name: Wait for Splunk setup completion
run: make wait_up
- name: Run Integration Tests
run: tox -e py -- tests/integration
system-tests:
needs: unit-tests
uses: ./.github/workflows/setup-python.yml
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
python-version: [3.9]
splunk-version: [9.4, latest]
include:
- os: ubuntu-22.04
python-version: 3.7
splunk-version: "9.1"
- os: ubuntu-latest
python-version: 3.13
splunk-version: latest
steps:
- name: Run docker compose (System)
run: SPLUNK_VERSION=${{matrix.splunk-version}} docker compose up -d
- name: Wait for Splunk setup completion
run: make wait_up
- name: Run System Tests
run: tox -e py -- tests/system