-
Notifications
You must be signed in to change notification settings - Fork 32
65 lines (56 loc) · 1.84 KB
/
pr-check-tests.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
65
name: PR-check unit tests
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
# This allows a subsequently queued workflow run to interrupt previous runs
concurrency:
group: mbed-edge-test-valgrind-${{ github.event.pull_request.head.label || github.head_ref || github.ref }}
cancel-in-progress: true
jobs:
make-test-valgrind:
runs-on: [ "self-hosted", "client" ]
env:
SCRIPTS_INTERNAL_DIR: scripts-internal
EDGE_CONFIGS_DIR: scripts-internal/edge/edge-config/build-mbed-edge-devmode-test
steps:
- uses: actions/checkout@v3
name: Checkout repo
with:
submodules: recursive
- name: Check out scripts-internal repository code
uses: actions/checkout@v4
with:
repository: PelionIoT/scripts-internal
token: ${{ secrets.ACCESS_TOKEN }}
path: ${{ env.SCRIPTS_INTERNAL_DIR }}
- name: Run make -f Makefile.test
uses: ./.github/actions/build-mbed-edge
with:
dockerfile: ./Dockerfile.test
configfiles: ${{ env.EDGE_CONFIGS_DIR }}
test-edge-tool:
runs-on: [ "self-hosted", "client" ]
env:
SCRIPTS_INTERNAL_DIR: scripts-internal
EDGE_CONFIGS_DIR: scripts-internal/edge/edge-config/build-mbed-edge-devmode-test
steps:
- uses: actions/checkout@v4
name: Checkout repo
with:
submodules: recursive
- name: Check out scripts-internal repository code
uses: actions/checkout@v4
with:
repository: PelionIoT/scripts-internal
token: ${{ secrets.ACCESS_TOKEN }}
path: ${{ env.SCRIPTS_INTERNAL_DIR }}
- uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: pytest
run: |
cd edge-tool
python setup.py install
pytest