Skip to content

update test github workflow #962

update test github workflow

update test github workflow #962

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-version: [3.9, 3.13]
include:
- os: ubuntu-22.04
python-version: 3.7
fail-fast: false
steps:
- uses: actions/checkout@ff7abcd0c3c05ccf6adc123a8cd1fd4fb30fb493
- uses: ./.github/actions/setup-python
with:
python-version: ${{ matrix.python-version }}
- name: Run Unit Tests
run: tox -e py -- tests/unit
integration-tests:
needs: unit-tests
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
python-version: [3.9]
splunk-version: [9.4, latest]
include:
- os: ubuntu-22.04
python-version: 3.7
splunk-version: "9.1"
- os: ubuntu-latest
python-version: 3.13
splunk-version: latest
steps:
- uses: actions/checkout@ff7abcd0c3c05ccf6adc123a8cd1fd4fb30fb493
- uses: ./.github/actions/setup-python
with:
python-version: ${{ matrix.python-version }}
os: ${{ matrix.os }}
- name: Run docker compose
run: SPLUNK_VERSION=${{ matrix.splunk-version }} docker compose up -d
- name: Wait for Splunk setup completion
run: make wait_up
- name: Run integration tests
run: tox -e py -- tests/integration
system-tests:
needs: unit-tests
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
python-version: [3.9]
splunk-version: [9.4, latest]
include:
- os: ubuntu-22.04
python-version: 3.7
splunk-version: "9.1"
- os: ubuntu-latest
python-version: 3.13
splunk-version: latest
steps:
- uses: actions/checkout@ff7abcd0c3c05ccf6adc123a8cd1fd4fb30fb493
- uses: ./.github/actions/setup-python
with:
python-version: ${{ matrix.python-version }}
os: ${{ matrix.os }}
- name: Run docker compose (System)
run: SPLUNK_VERSION=${{matrix.splunk-version}} docker compose up -d
- name: Wait for Splunk setup completion
run: make wait_up
- name: Run System Tests
run: tox -e py -- tests/system