File tree Expand file tree Collapse file tree 2 files changed +51
-44
lines changed Expand file tree Collapse file tree 2 files changed +51
-44
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 : [2.7, 3.7]
15+ splunk-version :
16+ - " 8.0"
17+ - " latest"
18+ fail-fast : false
19+
20+ services :
21+ splunk :
22+ image : splunk/splunk:${{matrix.splunk-version}}
23+ env :
24+ SPLUNK_START_ARGS : --accept-license
25+ SPLUNK_HEC_TOKEN : 11111111-1111-1111-1111-1111111111113
26+ SPLUNK_PASSWORD : changed!
27+ SPLUNK_APPS_URL : https://github.com/splunk/sdk-app-collection/releases/download/v1.0.0/sdk-app-collection.tgz
28+ ports :
29+ - 8000:8000
30+ - 8088:8088
31+ - 8089:8089
32+
33+ steps :
34+ - uses : actions/checkout@v2
35+ - name : Setup Python
36+ uses : actions/setup-python@v2
37+ with :
38+ python-version : ${{ matrix.python }}
39+ - name : Create .splunkrc file
40+ run : |
41+ cd ~
42+ echo host=localhost > .splunkrc
43+ echo port=8089 >> .splunkrc
44+ echo username=admin >> .splunkrc
45+ echo password=changed! >> .splunkrc
46+ echo scheme=https >> .splunkrc
47+ echo version=${{ matrix.splunk }} >> .splunkrc
48+ - name : Install tox
49+ run : pip install tox
50+ - name : Test Execution
51+ run : tox -e py
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments