Skip to content

Commit da7edfa

Browse files
committed
Merge remote-tracking branch 'origin/master' into guiV2switch
2 parents e8f01ae + 8170b69 commit da7edfa

20 files changed

+314
-6789
lines changed

.github/workflows/build.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ jobs:
3434
run: echo "github.ref_name = '${{ github.ref_name }}'"
3535

3636
build:
37+
name: Build ${{ matrix.env }} with ${{ matrix.gui.name }}
3738
runs-on: ubuntu-latest
3839

3940
strategy:
@@ -125,6 +126,7 @@ jobs:
125126
path: .pio/build/${{ matrix.env }}/firmware.bin
126127

127128
release:
129+
name: Upload release assets
128130
runs-on: ubuntu-latest
129131
needs: build
130132
if: github.ref_name == 'master' || startsWith(github.ref_name, 'v')

.github/workflows/divert_sim.yaml

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,13 @@
22

33
name: Build OpenEVSE divert simulator
44

5+
# Allow dependabot to update checks
56
permissions:
7+
checks: write
8+
actions: write
69
contents: write
10+
issues: read
11+
pull-requests: write
712

813
on:
914
push:
@@ -13,6 +18,7 @@ on:
1318

1419
jobs:
1520
build:
21+
name: Build and test divert_sim
1622
runs-on: ubuntu-latest
1723

1824
steps:
@@ -73,11 +79,21 @@ jobs:
7379
with:
7480
name: divert_sim
7581
path: OpenEVSE_WiFi/divert_sim/divert_sim
76-
82+
83+
- name: Set up Python 3.10
84+
uses: actions/setup-python@v4
85+
with:
86+
python-version: '3.10'
87+
cache: 'pip' # caching pip dependencies
88+
89+
- name: Install dependencies
90+
run: pip install -r OpenEVSE_WiFi/divert_sim/requirements.txt
91+
7792
- name: run tests
7893
run: |
7994
cd OpenEVSE_WiFi/divert_sim
80-
bash runall.sh
95+
mkdir -p output
96+
pytest -v --color=yes --code-highlight yes --junit-xml=output/test_results.xml
8197
8298
- name : Upload test results
8399
uses: actions/upload-artifact@v3
@@ -86,3 +102,10 @@ jobs:
86102
path: |
87103
OpenEVSE_WiFi/divert_sim/output
88104
OpenEVSE_WiFi/divert_sim/view.html
105+
106+
- name: Publish Unit Test Results
107+
uses: EnricoMi/publish-unit-test-result-action/composite@v2
108+
if: always()
109+
with:
110+
junit_files: OpenEVSE_WiFi/divert_sim/output/*.xml
111+
check_name: Test Results

divert_sim/requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pytest

divert_sim/runall.sh

Lines changed: 0 additions & 37 deletions
This file was deleted.

0 commit comments

Comments
 (0)