Skip to content

update test github workflow #948

update test github workflow

update test github workflow #948

Workflow file for this run

name: Python CI

Check failure on line 1 in .github/workflows/test.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/test.yml

Invalid workflow file

(Line: 18, Col: 5): Unexpected value 'steps', (Line: 38, Col: 5): Unexpected value 'steps', (Line: 64, Col: 5): Unexpected value 'steps'
on: [push, workflow_dispatch]
jobs:
unit-tests:
uses: ./.github/workflows/setup-python.yml
strategy:
matrix:
os: [ubuntu-latest]
python-version: [3.9, 3.13]
include:
- os: ubuntu-22.04
python-version: 3.7
fail-fast: false
with:
python-version: ${{ matrix.python-version }}
os: ${{ matrix.os }}
steps:
- name: Run Unit Tests
run: tox -e py -- tests/unit
integration-tests:
needs: unit-tests
uses: ./.github/workflows/setup-python.yml
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:
- 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
uses: ./.github/workflows/setup-python.yml
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:
- 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