Skip to content

Commit 709806e

Browse files
Merge pull request #399 from splunk/DVPL-10027
Move CI tests in Python SDK to Github Actions from TravisCI
2 parents 10489f2 + 261a943 commit 709806e

File tree

2 files changed

+51
-44
lines changed

2 files changed

+51
-44
lines changed

.github/workflows/test.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
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

.travis.yml

Lines changed: 0 additions & 44 deletions
This file was deleted.

0 commit comments

Comments
 (0)