Use data instead of json kwarg for post data #59
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |