Skip to content

update test github workflow #914

update test github workflow

update test github workflow #914

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: 6, Col: 14): Unexpected value '', (Line: 7, Col: 12): Unrecognized named-value: 'matrix'. Located at position 1 within expression: matrix.os, (Line: 7, Col: 12): Unexpected value '${{ matrix.os }}', (Line: 9, Col: 5): Unexpected value 'matrix', (Line: 15, Col: 5): Unexpected value 'fail-fast', (Line: 9, Col: 5): There's not enough info to determine what you meant. Add one of these properties: cancel-timeout-minutes, container, continue-on-error, defaults, env, environment, outputs, runs-on, secrets, services, snapshot, steps, timeout-minutes, uses, with, (Line: 18, Col: 5): A sequence was not expected, (Line: 32, Col: 1): Unexpected value 'integration-tests'
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@v3
- name: Setup Python
uses: actions/setup-python@v4
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@v3
- name: Run docker compose (Integration)
run: SPLUNK_VERSION=${{matrix.splunk-version}} docker compose up -d
- name: Setup Python
uses: actions/setup-python@v4
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@v3
- name: Run docker compose (System)
run: SPLUNK_VERSION=${{matrix.splunk-version}} docker compose up -d
- name: Setup Python
uses: actions/setup-python@v4
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