File tree Expand file tree Collapse file tree 1 file changed +50
-0
lines changed Expand file tree Collapse file tree 1 file changed +50
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Python CI
2+
3+ on :
4+ [push, pull_request]
5+
6+ jobs :
7+ build :
8+
9+ runs-on : ${{ matrix.os }}
10+ strategy :
11+ matrix :
12+ os :
13+ - ubuntu-latest
14+ python : [3.7]
15+ splunk-version :
16+ - " 8.0"
17+ - " latest"
18+
19+ services :
20+ splunk :
21+ image : splunk/splunk:${{matrix.splunk-version}}
22+ env :
23+ SPLUNK_START_ARGS : --accept-license
24+ SPLUNK_HEC_TOKEN : 11111111-1111-1111-1111-1111111111113
25+ SPLUNK_PASSWORD : changed!
26+ SPLUNK_APPS_URL : https://github.com/splunk/sdk-app-collection/releases/download/v1.0.0/sdk-app-collection.tgz
27+ ports :
28+ - 8000:8000
29+ - 8088:8088
30+ - 8089:8089
31+
32+ steps :
33+ - uses : actions/checkout@v2
34+ - name : Setup Python
35+ uses : actions/setup-python@v2
36+ with :
37+ python-version : ${{ matrix.python }}
38+ - name : Create .splunkrc file
39+ run : |
40+ cd ~
41+ echo host=localhost > .splunkrc
42+ echo port=8089 >> .splunkrc
43+ echo username=admin >> .splunkrc
44+ echo password=changed! >> .splunkrc
45+ echo scheme=https >> .splunkrc
46+ echo version=${{ matrix.splunk }} >> .splunkrc
47+ - name : Install tox
48+ run : pip install tox
49+ - name : Test Execution
50+ run : tox -e py37
You can’t perform that action at this time.
0 commit comments