-
Notifications
You must be signed in to change notification settings - Fork 137
50 lines (48 loc) · 1.29 KB
/
health_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
name: Build
on:
workflow_dispatch: # for testing
push:
branches:
- 'develop'
# This is what will cancel the workflow concurrency
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
check_integrity:
strategy:
fail-fast: false
matrix:
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"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Installing Rust toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- name: Installing python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Installing dependencies
run: |
python -m pip install tox
- name: Code instrumentation
run: |
tox -e tests-py${{ matrix.tox-env-py }}-lin
call-notify-to-teams:
needs: [check_integrity]
if: |
always() &&
contains(needs.*.result, 'failure')
uses: ./.github/workflows/notify_teams.yml
secrets: inherit