HeaderMatchingFilter: Gracefully handle missing headers #149
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 | |
# Trigger the workflow on push or pull request | |
on: [push, pull_request] | |
jobs: | |
build-ubuntu: | |
strategy: | |
matrix: | |
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] | |
name: Build (Python ${{ matrix.python-version }}) | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Set up Python | |
uses: actions/setup-python@v1 | |
with: | |
python-version: '${{ matrix.python }}' | |
- name: Install dependencies | |
shell: bash | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y notmuch python3-notmuch python3-venv flake8 | |
python3 -m venv env | |
source ./env/bin/activate | |
pip install setuptools setuptools_scm pytest dkimpy | |
ln -s /usr/lib/python3/dist-packages/notmuch ./env/lib/python*/site-packages | |
- name: flake8 lint | |
run: | | |
source ./env/bin/activate | |
flake8 --ignore=E501,W504 afew/ | |
- name: Tests | |
run: | | |
source ./env/bin/activate | |
pip install freezegun | |
pytest | |
- name: build | |
run: | | |
source ./env/bin/activate | |
python setup.py build | |
- name: install | |
run: | | |
source ./env/bin/activate | |
python setup.py install | |
- name: Docs | |
run: | | |
source ./env/bin/activate | |
pip install sphinx | |
sphinx-build -b html docs $(mktemp -d) | |
sphinx-build -b man docs $(mktemp -d) |