Source reconstructed at patch state 0 of 2 — not the installed (fully patched) source.
2 Debian patches touch this file
| 1 |
name: CI |
| 2 |
|
| 3 |
# Trigger the workflow on push or pull request |
| 4 |
on: [push, pull_request] |
| 5 |
|
| 6 |
jobs: |
| 7 |
build-ubuntu: |
| 8 |
strategy: |
| 9 |
matrix: |
| 10 |
python: [3.6, 3.7, 3.8] |
| 11 |
name: Build (Python ${{ matrix.python }}) |
| 12 |
runs-on: ubuntu-18.04 |
| 13 |
steps: |
| 14 |
- uses: actions/checkout@v2 |
| 15 |
- name: Set up Python |
| 16 |
uses: actions/setup-python@v1 |
| 17 |
with: |
| 18 |
python-version: '${{ matrix.python }}' |
| 19 |
- name: Install dependencies |
| 20 |
shell: bash |
| 21 |
run: | |
| 22 |
sudo apt-get update |
| 23 |
sudo apt-get install -y notmuch python3-notmuch python3-venv |
| 24 |
python3 -m venv env |
| 25 |
source ./env/bin/activate |
| 26 |
pip install setuptools pytest dkimpy |
| 27 |
ln -s /usr/lib/python3/dist-packages/notmuch ./env/lib/python*/site-packages |
| 28 |
- name: Tests |
| 29 |
run: | |
| 30 |
source ./env/bin/activate |
| 31 |
pip install freezegun |
| 32 |
pytest |
| 33 |
- name: build |
| 34 |
run: | |
| 35 |
source ./env/bin/activate |
| 36 |
python setup.py build |
| 37 |
- name: install |
| 38 |
run: | |
| 39 |
source ./env/bin/activate |
| 40 |
python setup.py install |
| 41 |
- name: Generate coverage report |
| 42 |
run: | |
| 43 |
source ./env/bin/activate |
| 44 |
pip install pytest-cov |
| 45 |
pytest --cov=./ --cov-report=xml |
| 46 |
- name: Upload coverage to Codecov |
| 47 |
uses: codecov/codecov-action@v1 |
| 48 |
with: |
| 49 |
file: ./coverage.xml |
| 50 |
flags: unittests |
| 51 |
name: codecov-umbrella |
| 52 |
fail_ci_if_error: true |
| 53 |
- name: Docs |
| 54 |
run: | |
| 55 |
source ./env/bin/activate |
| 56 |
pip install sphinx |
| 57 |
python setup.py build_sphinx -b html,man |