Skip to content

Commit

Permalink
Turn on basic testing
Browse files Browse the repository at this point in the history
I _wanted_ to turn on the automated tests that we have, but it fails because
pytest is not installed. @couryrr-afs can you please fix the automated tests so
we can include them as well.

<details>
<summary>Existing automated e2e tests fail</summary>

```
$ bash demo-automated-testing.sh
[+] Building 0.0s (0/0)                                    docker:desktop-linux
[+] Running 2/0
 ✔ Container everest-ac-demo-mqtt-server-1  Created                        0.0s
 ✔ Container everest-ac-demo-manager-1      Created                        0.0s
Attaching to everest-ac-demo-manager-1, everest-ac-demo-mqtt-server-1
everest-ac-demo-mqtt-server-1  | 1710048535: mosquitto version 2.0.10 starting
everest-ac-demo-mqtt-server-1  | 1710048535: Config loaded from /mosquitto/config/mosquitto.conf.
everest-ac-demo-mqtt-server-1  | 1710048535: Opening ipv4 listen socket on port 1883.
everest-ac-demo-mqtt-server-1  | 1710048535: Opening websockets listen socket on port 9001.
everest-ac-demo-mqtt-server-1  | 1710048535: mosquitto version 2.0.10 running
everest-ac-demo-manager-1      | ./run-test.sh: line 3: pytest: not found
everest-ac-demo-manager-1 exited with code 127
```
</details>

Signed-off-by: Shankari <[email protected]>
  • Loading branch information
shankari committed Mar 10, 2024
1 parent a40f695 commit 7d44a4f
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/e2etest.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: e2etest

on:
schedule:
# * is a special character in YAML so you have to quote this string
- cron: '5 4 * * *'

jobs:
pull-and-run-tests:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]

steps:
- name: Download and launch
id: curl-download-and-launch
shell: bash
run: |
curl https://raw.githubusercontent.com/everest/everest-demo/main/demo-iso15118-2-ac-plus-ocpp201.sh | bash

0 comments on commit 7d44a4f

Please sign in to comment.