2021-10-28 19:41:57 +01:00
|
|
|
name: Python 3.10 Tests
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- main
|
2022-01-06 07:55:03 +00:00
|
|
|
- "*LTS"
|
2021-12-05 22:05:07 +00:00
|
|
|
types: [opened, synchronize, reopened, ready_for_review]
|
2021-10-28 19:41:57 +01:00
|
|
|
|
|
|
|
jobs:
|
2021-12-05 22:05:07 +00:00
|
|
|
testPy310:
|
|
|
|
if: github.event.pull_request.draft == false
|
2021-10-28 19:41:57 +01:00
|
|
|
name: ut-${{ matrix.config.tox-env }}-${{ matrix.os }}
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
# os: [ubuntu-latest, macos-latest]
|
|
|
|
os: [ubuntu-latest]
|
|
|
|
config:
|
|
|
|
- {
|
|
|
|
python-version: "3.10",
|
|
|
|
tox-env: py310,
|
|
|
|
ignore-error-flake: "false",
|
|
|
|
command-timeout: "0",
|
|
|
|
}
|
|
|
|
- {
|
|
|
|
python-version: "3.10",
|
|
|
|
tox-env: py310-no-ext,
|
|
|
|
ignore-error-flake: "true",
|
|
|
|
command-timeout: "600000",
|
|
|
|
}
|
|
|
|
steps:
|
|
|
|
- name: Checkout the Repository
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
id: checkout-branch
|
|
|
|
|
|
|
|
- name: Run Unit Tests
|
|
|
|
uses: harshanarayana/custom-actions@main
|
|
|
|
with:
|
|
|
|
python-version: ${{ matrix.config.python-version }}
|
|
|
|
test-infra-tool: tox
|
|
|
|
test-infra-version: latest
|
|
|
|
action: tests
|
|
|
|
test-additional-args: "-e=${{ matrix.config.tox-env }},-vv=''"
|
|
|
|
experimental-ignore-error: "${{ matrix.config.ignore-error-flake }}"
|
|
|
|
command-timeout: "${{ matrix.config.command-timeout }}"
|
|
|
|
test-failure-retry: "3"
|