File tree Expand file tree Collapse file tree 1 file changed +36
-0
lines changed
Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Original file line number Diff line number Diff line change 1+ name : daily-e2e.yml
2+ on :
3+ schedule :
4+ - cron : ' 0 8 * * *'
5+
6+ jobs :
7+ - name : " Checkout"
8+ uses : actions/checkout@v4
9+ with :
10+ ref : main
11+
12+ - name : " Build test containers"
13+ run : docker compose build e2e
14+
15+ - name : " Create environment file"
16+ run : env | grep -E '^MPT_' > .env
17+ env :
18+ RP_ENDPOINT : ${{ secrets.RP_ENDPOINT }}
19+ RP_API_KEY : ${{ secrets.RP_API_KEY }}
20+ MPT_API_BASE_URL : ${{ secrets.MPT_API_BASE_URL }}
21+ MPT_API_TOKEN : ${{ secrets.MPT_API_TOKEN }}
22+ MPT_API_TOKEN_CLIENT : ${{ secrets.MPT_API_TOKEN_CLIENT }}
23+ MPT_API_TOKEN_OPERATIONS : ${{ secrets.MPT_API_TOKEN_OPERATIONS }}
24+ MPT_API_TOKEN_VENDOR : ${{ secrets.MPT_API_TOKEN_VENDOR }}
25+
26+ - name : " Run E2E test"
27+ run : docker compose run --service-ports e2e bash -c "pytest -v -p no:randomly --no-cov --reportportal --rp-launch=$RP_LAUNCH --rp-api-key=$RP_API_KEY --rp-endpoint=$RP_ENDPOINT --junitxml=e2e-report.xml tests/e2e"
28+ env :
29+ RP_LAUNCH : github-e2e-cron-main
30+ RP_ENDPOINT : ${{ secrets.RP_ENDPOINT }}
31+ RP_API_KEY : ${{ secrets.RP_API_KEY }}
32+
33+
34+ - name : " Stop containers"
35+ if : always()
36+ run : docker compose down
You can’t perform that action at this time.
0 commit comments