Debian Codegraph @

.github/workflows/build.yml

raw ◀ ▶
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-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
11 name: Build (Python ${{ matrix.python-version }})
12 runs-on: ubuntu-20.04
13 steps:
14 - uses: actions/checkout@v2
•15 with:
16 fetch-depth: 0
17 - name: Set up Python ${{ matrix.python-version }}
18 uses: actions/setup-python@v1
19 with:
•20 python-version: '${{ matrix.python-version }}'
21 - name: Display Python version
22 run: python -c "import sys; print(sys.version)"
23 - name: Install dependencies
24 shell: bash
25 run: |
26 sudo apt-get update
•27 sudo apt-get install -y notmuch libnotmuch-dev python3-venv flake8
28 python3 -m venv env
29 source ./env/bin/activate
•30 pip install setuptools setuptools_scm pytest dkimpy
•31 pip install notmuch2
•32 - name: flake8 lint
33 run: |
34 source ./env/bin/activate
35 flake8 --ignore=E501,W504 afew/
36 - name: Tests
37 run: |
38 source ./env/bin/activate
39 pip install freezegun
40 pytest
41 - name: build
42 run: |
43 source ./env/bin/activate
44 python setup.py build
45 - name: install
46 run: |
47 source ./env/bin/activate
48 python setup.py install
49 - name: Docs
50 run: |
51 source ./env/bin/activate
52 pip install sphinx
•53 sphinx-build -b html docs $(mktemp -d)
54 sphinx-build -b man docs $(mktemp -d)