-
Notifications
You must be signed in to change notification settings - Fork 134
64 lines (64 loc) · 2.05 KB
/
nightly_check.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
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 Rust toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- 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