-
Notifications
You must be signed in to change notification settings - Fork 4
58 lines (52 loc) · 1.5 KB
/
ci.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
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main, dev, devel]
jobs:
test:
runs-on: ${{ matrix.os }}-latest
strategy:
fail-fast: false
matrix:
# os: [ubuntu, windows, macos]
# os: [ubuntu, macos]
os: [ubuntu]
# python-version: ['3.10', '3.11']
python-version: ['3.10']
action: ["pytest-3.10", "lint"]
sub_repo: ["nua-lib", "nua-agent", "nua-build", "nua-cli", "nua-orchestrator"]
env:
nox_action: ${{ matrix.action }}
nox_sub_repo: ${{ matrix.sub_repo }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- run: pip install -U pip setuptools wheel nox poetry
- run: nox -e "${{ matrix.action }}(sub_repo='${{ matrix.sub_repo }}')"
# - run: codecov
- name: Notify slack fail
if: failure()
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
uses: voxmedia/github-action-slack-notify-build@v1
with:
channel_id: C04EACFH8
# channel: code
status: FAILED
color: danger
# coverage:
# runs-on: ubuntu-latest
#
# steps:
# - uses: actions/checkout@v3
# - uses: actions/setup-python@v4
# with:
# python-version: "3.11"
# - run: pip install -U pip setuptools wheel poetry
# # - run: ./tools/run-test-with-coverage
# # Not needed
# # - run: codecov