-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (42 loc) · 1.22 KB
/
smoke.yml
File metadata and controls
45 lines (42 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
permissions:
contents: read
name: Smoke
on:
workflow_dispatch:
schedule:
- cron: '0 8 * * *' # Runs every day at 8am
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
jobs:
smoke:
if: github.actor == github.repository_owner
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.10'
- uses: abatilo/actions-poetry@v2
- name: Install dependencies
run: |
poetry install --with dev
- name: Post smoke record
env:
IMEDNET_API_KEY: ${{ secrets.APIKEY }}
IMEDNET_SECURITY_KEY: ${{ secrets.SECURITYKEY }}
IMEDNET_BASE_URL: ${{ vars.BASE_URL }}
run: |
poetry run python scripts/post_smoke_record.py --verbose 2>&1 | tee smoke.log
- name: Upload smoke log
if: always()
uses: actions/upload-artifact@v4
with:
name: smoke-log
path: smoke.log
- name: Run live tests
env:
IMEDNET_API_KEY: ${{ secrets.APIKEY }}
IMEDNET_SECURITY_KEY: ${{ secrets.SECURITYKEY }}
IMEDNET_RUN_E2E: "1"
run: |
poetry run pytest -vv -s --log-cli-level=INFO tests/live