Skip to content

Commit b8ff7f4

Browse files
committed
added e2e test job
1 parent 71a9fd2 commit b8ff7f4

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/rpe_test.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,40 @@ jobs:
225225
with:
226226
files: dist/rapid_power_estimator*.exe
227227

228+
e2e_test:
229+
timeout-minutes: 60
230+
runs-on: ubuntu-latest
231+
steps:
232+
- uses: actions/checkout@v4
233+
234+
- name: Setup Python
235+
uses: actions/setup-python@v5
236+
with:
237+
python-version: 3.8
238+
239+
- uses: actions/setup-node@v4
240+
with:
241+
node-version: 20.11
242+
243+
- name: Install dependencies
244+
run: |
245+
npm install
246+
python3 -m pip install -r requirements.txt
247+
248+
- name: Install Playwright Browsers
249+
run: npx playwright install --with-deps
250+
251+
- name: Run Playwright tests
252+
run: npx playwright test
253+
254+
# - uses: actions/upload-artifact@v4
255+
# if: ${{ !cancelled() }}
256+
# with:
257+
# name: playwright-report
258+
# path: playwright-report/
259+
# retention-days: 30
260+
261+
228262
coverage:
229263
runs-on: ubuntu-latest
230264
steps:

0 commit comments

Comments
 (0)