Skip to content

update test github workflow #920

update test github workflow

update test github workflow #920

Workflow file for this run

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