Test - Oncall All OS #2
This file contains 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: Test - Oncall All OS | |
on: | |
# creates a button | |
workflow_dispatch: | |
inputs: | |
logLevel: | |
description: "Log level" | |
required: true | |
default: "warning" | |
type: choice | |
options: | |
- info | |
- warning | |
- debug | |
jobs: | |
test_on_ubuntu_container: | |
runs-on: [self-hosted, Ubuntu, Docker] | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: | | |
3.9 | |
3.10 | |
3.11 | |
3.12 | |
- name: Run Nox Quick-Tests | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install --upgrade nox | |
python -m nox --sessions test_source | |
env: | |
LOG_LEVEL: ${{ github.event.inputs.logLevel }} | |
- name: Upload Coverage | |
uses: codecov/codecov-action@v3 | |
with: | |
files: coverage.xml # optional | |
flags: pytests # optional | |
fail_ci_if_error: false # optional (default = false) | |
verbose: true # optional (default = false) | |
test_on_windows: | |
runs-on: [self-hosted, Windows, X64] | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: | | |
3.9 | |
3.10 | |
3.11 | |
3.12 | |
- name: Run Nox Quick-Tests | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install --upgrade nox | |
python -m nox --sessions test_source | |
env: | |
LOG_LEVEL: ${{ github.event.inputs.logLevel }} | |
- name: Upload Coverage | |
uses: codecov/codecov-action@v3 | |
with: | |
files: coverage.xml # optional | |
flags: pytests # optional | |
fail_ci_if_error: false # optional (default = false) | |
verbose: true # optional (default = false) | |
test_on_macos: | |
runs-on: [self-hosted, macOS, ARM64] | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: | | |
3.10 | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install --upgrade nox | |
python -m pip install cibuildwheel==2.16.2 | |
- name: Test Source | |
run: python -m nox --sessions test_source | |
env: | |
LOG_LEVEL: ${{ github.event.inputs.logLevel }} | |
AGENT_TOOLS_DIRECTORY: / |