Skip to content

Commit a75ee79

Browse files
update CI and test automation workflows to use smoke tests and improve cleanup conditions
1 parent c7bc996 commit a75ee79

3 files changed

Lines changed: 9 additions & 5 deletions

File tree

.github/workflows/CI.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ jobs:
395395

396396

397397
cleanup-deployment:
398-
if: always()
398+
if: "!cancelled()"
399399
needs: [deploy, e2e-test]
400400
runs-on: ubuntu-latest
401401
env:

.github/workflows/test-automation.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
- name: Run tests(1)
4949
id: test1
5050
run: |
51-
xvfb-run pytest --headed --html=report/report.html --self-contained-html
51+
xvfb-run pytest -m smoke --html=report/report.html --self-contained-html
5252
working-directory: tests/e2e-test
5353
continue-on-error: true
5454

@@ -61,7 +61,7 @@ jobs:
6161
id: test2
6262
if: ${{ steps.test1.outcome == 'failure' }}
6363
run: |
64-
xvfb-run pytest --headed --html=report/report.html --self-contained-html
64+
xvfb-run pytest -m smoke --html=report/report.html --self-contained-html
6565
working-directory: tests/e2e-test
6666
continue-on-error: true
6767

@@ -74,7 +74,7 @@ jobs:
7474
id: test3
7575
if: ${{ steps.test2.outcome == 'failure' }}
7676
run: |
77-
xvfb-run pytest --headed --html=report/report.html --self-contained-html
77+
xvfb-run pytest -m smoke --html=report/report.html --self-contained-html
7878
working-directory: tests/e2e-test
7979

8080
- name: Upload test report
@@ -83,7 +83,9 @@ jobs:
8383
if: ${{ !cancelled() }}
8484
with:
8585
name: test-report
86-
path: tests/e2e-test/report/*
86+
path: |
87+
tests/e2e-test/report/*
88+
tests/e2e-test/screenshots/*
8789
8890
- name: Send Notification
8991
if: always()

tests/e2e-test/pytest.ini

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,5 @@ log_cli_level = INFO
44
log_file = logs/tests.log
55
log_file_level = INFO
66
addopts = -p no:warnings
7+
markers =
8+
smoke: marks tests as smoke tests (deselect with '-m "not smoke"')

0 commit comments

Comments
 (0)