-
Notifications
You must be signed in to change notification settings - Fork 6
102 lines (99 loc) · 2.76 KB
/
test.yaml
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
name: test
on:
push:
pull_request:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
permissions:
contents: read
jobs:
install-browers:
runs-on: ${{ matrix.test-config.os }}
strategy:
fail-fast: false
matrix:
test-config: [
{
os: "ubuntu-latest",
runner: "selenium",
browser: "chrome",
browser-version: "latest",
driver-version: "latest",
},
{
os: "ubuntu-latest",
runner: "selenium",
browser: "firefox",
browser-version: "latest",
driver-version: "latest",
},
{
os: "ubuntu-latest",
runner: "selenium",
browser: "node",
browser-version: "18",
},
{
os: "macos-latest",
runner: "selenium",
browser: "safari",
},
{
os: "ubuntu-latest",
runner: "playwright",
browser: "chrome",
},
{
os: "ubuntu-latest",
runner: "playwright",
browser: "firefox",
},
]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.11"
- uses: ./install-browser
with:
runner: ${{ matrix.test-config.runner }}
playwright-version: ${{ matrix.test-config.playwright-version }}
browser: ${{ matrix.test-config.browser }}
browser-version: ${{ matrix.test-config.browser-version }}
driver-version: ${{ matrix.test-config.driver-version }}
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Check installation
shell: bash
run: |
python install-browser/test_installation.py | tee result.log
grep "${{ matrix.test-config.runner }}/${{ matrix.test-config.browser }}" result.log
download-pyodide:
strategy:
fail-fast: false
matrix:
version: [0.21.3, 0.22.1, 0.23.2]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.11"
- uses: ./download-pyodide
with:
version: ${{ matrix.version }}
to: pyodide
- name: Check download
shell: bash
run: |
ls pyodide | tee result.log
grep -q "pyodide.js" result.log
grep -q "pyodide.asm.js" result.log
grep -q "pyodide.asm.wasm" result.log
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.11"
- uses: pre-commit/action@v3.0.0