-
Notifications
You must be signed in to change notification settings - Fork 37
39 lines (37 loc) · 1.15 KB
/
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
name: Run test suite
on:
push:
branches:
- main
pull_request: {}
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
repository: w3c/linkchecker-testsuite
path: test-suite
- uses: actions/setup-python@v2
with:
python-version: '3.7'
- name: Install test suite dependencies
working-directory: test-suite/harness
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- uses: actions/checkout@v2
with:
path: link-checker
- uses: shogo82148/actions-setup-perl@v1
- name: Install checker dependencies
working-directory: link-checker
run: cpanm --installdeps .
- name: run test server
working-directory: test-suite
run: python server.py &
- name: install bubblewrap
run: sudo apt-get install -y bubblewrap
- name: run test suite
working-directory: test-suite/harness
run: bwrap --dev-bind / / --ro-bind ../hosts /etc/hosts sh -c "python linktest.py --checker_path ../../link-checker/bin/checklink run"