-
Notifications
You must be signed in to change notification settings - Fork 40
65 lines (51 loc) · 1.49 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
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
name: Test pyCA
on:
push:
branches-ignore:
- 'dependabot/**'
pull_request:
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
# https://endoflife.date/python
# https://github.com/actions/runner-images/blob/main/images/linux/Ubuntu2204-Readme.md#python
python-version:
- '3.8'
- '3.9'
- '3.10'
- '3.11'
- '3.12'
steps:
- name: install libgnutls28-dev
run: |
sudo apt update -q
sudo apt install -q -y libgnutls28-dev libcurl4-gnutls-dev
- uses: actions/checkout@v2
- name: set up python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: install Python dependencies
run: pip install -r requirements.txt
- name: install JavaScript dependencies
run: npm ci
- name: install test dependencies
run: pip install -r .github/requirements.txt
- name: lint code
run: make lint
- name: run test
run: make test
- name: no auth for selenium tests
run: sed -i 's/#password *= .*$/password = ""/' etc/pyca.conf
- name: start user interface
run: |
gunzip .github/test.db.gz
mv .github/test.db pyca.db
./start.sh ui &
sleep 2
- name: run user interface integration tests
run: ./.github/selenium-tests
- name: ensure test coverage doesn't drop
run: coverage report --fail-under=91