-
-
Notifications
You must be signed in to change notification settings - Fork 2
44 lines (33 loc) · 1.11 KB
/
ci.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
name: CI
on: [push, pull_request]
jobs:
unit-tests:
runs-on: ubuntu-latest
strategy:
max-parallel: 3
matrix:
python-version: [3.9]
steps:
- name: checkout
uses: actions/checkout@v1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: install test reqs
run: pip install -U pytest pytest-cov pytest-asyncio coverage black pip setuptools pylint
- name: Style Check
run: |
black --check *.py
black --check authsign/*.py
black --check tests/*.py
- name: install
run: python setup.py install
- name: Lint Check
run: pylint --rcfile=pylint.ini authsign/
- name: run pebble in background
run: docker run -e PEBBLE_WFE_NONCEREJECT=0 -d --network "host" letsencrypt/pebble
- name: add custom domain to /etc/hosts
run: echo "127.0.0.1 localhost.test" | sudo tee -a /etc/hosts
- name: run tests
run: py.test --domain localhost.test --maxfail 1