Skip to content

Nightly Regression Test #161

Nightly Regression Test

Nightly Regression Test #161

Workflow file for this run

name: Nightly Regression Test
on:
workflow_dispatch: # run on request (no need for PR)
schedule:
- cron: "0 15 * * 2-6" # Every day at 12:00 AM in Korea time
defaults:
run:
shell: bash
jobs:
nightly_regression_test:
strategy:
fail-fast: false
matrix:
os: ['macos-11', 'ubuntu-20.04', 'windows-2019']
python-version: ['3.8', '3.9', '3.10','3.11']
include:
- os: "macos-11"
tox-env-os: "darwin"
- os: "ubuntu-20.04"
tox-env-os: "lin"
- os: "windows-2019"
tox-env-os: "win"
- python-version: "3.8"
tox-env-py: "38"
- python-version: "3.9"
tox-env-py: "39"
- python-version: "3.10"
tox-env-py: "310"
- python-version: "3.11"
tox-env-py: "311"
name: nightly regression test (${{ matrix.os }}, Python ${{ matrix.python-version }})
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Installing python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: pip
- name: Installing dependencies
run: |
python -m pip install tox
- name: Nightly regression testing
run: |
# python -m pytest -v --html=nightly_regression_test_report.html
tox -e tests-py${{ matrix.tox-env-py }}-${{ matrix.tox-env-os }}
- name: Upload test results
uses: actions/upload-artifact@v3
with:
name: nightly-results-py${{ matrix.tox-env-py }}-${{ matrix.tox-env-os }}
path: .tox/results-tests-py${{ matrix.tox-env-py }}-${{ matrix.tox-env-os }}.xml
call-notify-to-teams:
needs: [nightly_regression_test]
if: |
always() &&
contains(needs.*.result, 'failure')
uses: ./.github/workflows/notify_teams.yml
secrets: inherit