update test github workflow #952
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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: ./.github/workflows/setup-python.yml | |
| 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: ./.github/workflows/setup-python.yml | |
| 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: ./.github/workflows/setup-python.yml | |
| 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 |