Skip to content

Test - Oncall All OS #2

Test - Oncall All OS

Test - Oncall All OS #2

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: /