-
Notifications
You must be signed in to change notification settings - Fork 117
111 lines (90 loc) · 2.68 KB
/
divert_sim.yaml
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
name: Build OpenEVSE divert simulator
# Allow dependabot to update checks
permissions:
checks: write
actions: write
contents: write
issues: read
pull-requests: write
on:
push:
branches:
- master
pull_request:
jobs:
build:
name: Build and test divert_sim
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
path: OpenEVSE_WiFi
- uses: actions/checkout@v4
with:
repository: JeremyPoulter/MicroDebug
path: MicroDebug
- uses: actions/checkout@v4
with:
repository: JeremyPoulter/MicroTasks
path: MicroTasks
- uses: actions/checkout@v4
with:
repository: JeremyPoulter/StreamSpy
path: StreamSpy
- uses: actions/checkout@v4
with:
repository: JeremyPoulter/ConfigJson
path: ConfigJson
- uses: actions/checkout@v4
with:
repository: bblanchon/ArduinoJson
path: ArduinoJson
ref: v6.20.1
- uses: actions/checkout@v4
with:
repository: JeremyPoulter/OpenEVSE_Lib
path: OpenEVSE_Lib
- uses: actions/checkout@v4
with:
repository: JeremyPoulter/EpoxyDuino
path: EpoxyDuino
- uses: actions/checkout@v4
with:
repository: JeremyPoulter/ESPAL
path: ESPAL
- uses: ammaraskar/gcc-problem-matcher@master
- name: Build the simulator
run: |
cd OpenEVSE_WiFi/divert_sim
make -j
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: divert_sim
path: OpenEVSE_WiFi/divert_sim/divert_sim
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: '3.10'
cache: 'pip' # caching pip dependencies
- name: Install dependencies
run: pip install -r OpenEVSE_WiFi/divert_sim/requirements.txt
- name: run tests
run: |
cd OpenEVSE_WiFi/divert_sim
mkdir -p output
pytest -v --color=yes --code-highlight yes --junit-xml=output/test_results.xml
- name : Upload test results
uses: actions/upload-artifact@v3
with:
name: test_results
path: |
OpenEVSE_WiFi/divert_sim/output
OpenEVSE_WiFi/divert_sim/view.html
- name: Publish Unit Test Results
uses: EnricoMi/publish-unit-test-result-action/composite@v2
if: always()
with:
junit_files: OpenEVSE_WiFi/divert_sim/output/*.xml
check_name: Test Results