-
Notifications
You must be signed in to change notification settings - Fork 383
110 lines (91 loc) · 2.77 KB
/
test.yml
File metadata and controls
110 lines (91 loc) · 2.77 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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
name: Python CI
on: [push, workflow_dispatch]
jobs:
unit-tests:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
python: [3.9, 3.13]
include:
- os: ubuntu-22.04
python: 3.7
fail-fast: false
steps:
- name: Checkout code
uses: actions/checkout@ff7abcd0c3c05ccf6adc123a8cd1fd4fb30fb493
- name: Setup Python
uses: actions/setup-python@9322b3ca74000aeb2c01eb777b646334015ddd72
with:
python-version: ${{ matrix.python }}
- name: Install tox
run: pip install tox
- name: Run Unit Tests
run: tox -e unit
integration-tests:
needs: unit-tests
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
python: [3.9, 3.13]
splunk-version: ["8.1", "8.2", "latest"]
include:
- os: ubuntu-22.04
python: 3.7
splunk-version: "8.1"
- os: ubuntu-22.04
python: 3.7
splunk-version: "8.2"
- os: ubuntu-22.04
python: 3.7
splunk-version: "latest"
fail-fast: false
steps:
- name: Checkout code
uses: actions/checkout@ff7abcd0c3c05ccf6adc123a8cd1fd4fb30fb493
- name: Run docker compose
run: SPLUNK_VERSION=${{ matrix.splunk-version }} docker compose up -d
- name: Setup Python
uses: actions/setup-python@9322b3ca74000aeb2c01eb777b646334015ddd72
with:
python-version: ${{ matrix.python }}
- name: Install tox
run: pip install tox
- name: Run Integration Tests
run: tox -e integration
system-tests:
needs: [unit-tests, integration-tests]
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
python: [3.9, 3.13]
splunk-version: ["8.1", "8.2", "latest"]
include:
- os: ubuntu-22.04
python: 3.7
splunk-version: "8.1"
- os: ubuntu-22.04
python: 3.7
splunk-version: "8.2"
- os: ubuntu-22.04
python: 3.7
splunk-version: "latest"
fail-fast: false
steps:
- name: Checkout code
uses: actions/checkout@ff7abcd0c3c05ccf6adc123a8cd1fd4fb30fb493
- name: Run docker compose (System)
run: SPLUNK_VERSION=${{matrix.splunk-version}} docker compose up -d
- name: Setup Python
uses: actions/setup-python@9322b3ca74000aeb2c01eb777b646334015ddd72
with:
python-version: ${{ matrix.python }}
- name: Install tox
run: pip install tox
- name: Run System Tests
run: tox -e system
fossa-scan:
uses: splunk/oss-scanning-public/.github/workflows/oss-scan.yml@main
secrets: inherit