-
Notifications
You must be signed in to change notification settings - Fork 155
64 lines (52 loc) · 1.71 KB
/
test-e2e-vizro-screenshots.yml
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
name: e2e vizro screenshots tests
defaults:
run:
working-directory: vizro-core
on:
push:
branches: [main]
pull_request:
branches:
- main
env:
PYTHONUNBUFFERED: 1
FORCE_COLOR: 1
PYTHON_VERSION: "3.12"
jobs:
test-e2e-vizro-screenshots:
name: test-e2e-vizro-screenshots for ${{ matrix.config.browser }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
config:
- browser: chrome
command: "-m 'not mobile_screenshots'"
- browser: chrome_mobile
command: "-m mobile_screenshots"
- browser: firefox
command: "--webdriver Firefox -m 'not mobile_screenshots'"
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ env.PYTHON_VERSION }}
uses: actions/setup-python@v5
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Install Hatch
run: pip install hatch
- name: Install pixelmatch
run: sudo npm install pixelmatch -g
- name: Show dependency tree
run: hatch run pip tree
- name: Run e2e vizro-screenshots tests
run: |
export BROWSER=${{ matrix.config.browser }}
hatch run test-e2e-vizro-screenshots ${{ matrix.config.command }}
- name: Create artifacts and slack notifications
if: failure()
uses: ./.github/actions/failed-artifacts-and-slack-notifications
env:
TESTS_NAME: Vizro e2e vizro screenshots tests for ${{ matrix.config.browser }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
PROJECT_PATH: /home/runner/work/vizro/vizro/vizro-core/
FAILED_SCREENSHOTS_ARCHIVE_POSTFIX: ${{ matrix.config.browser }}