Skip to content

Commit 09b7100

Browse files
authored
Merge pull request #627 from OpenEVSE/divert_sim_summary
Divert_sim summary
2 parents ce2dfe9 + 5f9309f commit 09b7100

17 files changed

+246
-6787
lines changed

.github/workflows/divert_sim.yaml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,16 +73,28 @@ jobs:
7373
with:
7474
name: divert_sim
7575
path: OpenEVSE_WiFi/divert_sim/divert_sim
76-
76+
77+
- name: Set up Python 3.10
78+
uses: actions/setup-python@v4
79+
with:
80+
python-version: '3.10'
81+
cache: 'pip' # caching pip dependencies
82+
83+
- name: Install dependencies
84+
run: pip install -r OpenEVSE_WiFi/divert_sim/requirements.txt
85+
7786
- name: run tests
7887
run: |
7988
cd OpenEVSE_WiFi/divert_sim
80-
bash runall.sh
89+
mkdir -p output
90+
pytest -v --color=yes --code-highlight yes --junitxml=output/test_results.xml
8191
8292
- name : Upload test results
8393
uses: actions/upload-artifact@v3
8494
with:
8595
name: test_results
8696
path: |
97+
${{ github.ref_name }}_test_results.pdf
98+
${{ github.ref_name }}_test_results.png
8799
OpenEVSE_WiFi/divert_sim/output
88100
OpenEVSE_WiFi/divert_sim/view.html

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)