-
-
Notifications
You must be signed in to change notification settings - Fork 24
56 lines (46 loc) · 1.35 KB
/
remote_package_index_test.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
name: run remote package index tests
on:
workflow_dispatch:
permissions:
contents: read
jobs:
test:
runs-on: ${{ matrix.os }}
env:
DISPLAY: :99
strategy:
fail-fast: false
matrix:
os: [ubuntu-20.04]
pyodide-version: [0.23.4]
test-config: [
{runner: selenium, runtime: chrome, runtime-version: latest },
]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3.11.1
- uses: pyodide/pyodide-actions/download-pyodide@v2
with:
version: ${{ matrix.pyodide-version }}
to: dist
- uses: pyodide/pyodide-actions/install-browser@v2
with:
runner: ${{ matrix.test-config.runner }}
browser: ${{ matrix.test-config.runtime }}
browser-version: ${{ matrix.test-config.runtime-version }}
- name: Install requirements
shell: bash -l {0}
run: |
python3 -m pip install -e .[test]
python3 -m pip install requests
- name: Run tests
shell: bash -l {0}
run: |
pytest -v \
--dist-dir=./dist/ \
--runner=${{ matrix.test-config.runner }} \
--rt ${{ matrix.test-config.runtime }} \
--run-remote-index-tests \
tests/test_remote_indexes.py