forked from openvinotoolkit/datumaro
-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (53 loc) · 1.62 KB
/
weekly_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
name: Weekly Stability Test
on:
workflow_dispatch: # run on request (no need for PR)
schedule:
# every 7PM on Sunday
- cron: "0 19 * * 0"
# This is what will cancel the workflow concurrency
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
defaults:
run:
shell: bash
jobs:
weekly_stability_test:
strategy:
fail-fast: false
matrix:
python-version: ['3.9', '3.10', '3.11']
extra: ['default', 'tf', 'tfds', 'torch']
include:
- 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: stability test (Python ${{ matrix.python-version }}, Extra ${{ matrix.extra }})
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Installing python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Installing dependencies
run: |
python -m pip install tox
- name: Stability testing
run: |
tox -e stability-${{ matrix.extra }}
- name: Upload test results
uses: actions/upload-artifact@v4
with:
name: stability-${{ matrix.python-version }}-${{ matrix.extra }}
path: .tox/stability-${{ matrix.extra }}/log
call-notify-to-teams:
needs: [weekly_stability_test]
if: |
always() &&
contains(needs.*.result, 'failure')
uses: ./.github/workflows/notify_teams.yml
secrets: inherit