| 1 |
--- |
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
name: Build test |
| 6 |
on: |
| 7 |
pull_request: |
| 8 |
push: |
| 9 |
branches: |
| 10 |
- main |
| 11 |
|
| 12 |
permissions: |
| 13 |
contents: read |
| 14 |
|
| 15 |
jobs: |
| 16 |
build: |
| 17 |
runs-on: ubuntu-20.04 |
| 18 |
concurrency: |
| 19 |
group: ${{ github.workflow }}-${{ matrix.python }}-${{ github.ref }} |
| 20 |
cancel-in-progress: true |
| 21 |
strategy: |
| 22 |
fail-fast: false |
| 23 |
matrix: |
| 24 |
python: [ |
| 25 |
"3.7", |
| 26 |
"3.8", |
| 27 |
"3.9", |
| 28 |
"3.10", |
| 29 |
"3.11.0-rc.1", |
| 30 |
] |
| 31 |
name: Python ${{ matrix.python }} |
| 32 |
steps: |
| 33 |
- name: Repository checkout |
| 34 |
uses: actions/checkout@v2 |
| 35 |
|
| 36 |
- name: Configure Python ${{ matrix.python }} |
| 37 |
uses: actions/setup-python@v2 |
| 38 |
with: |
| 39 |
python-version: ${{ matrix.python }} |
| 40 |
architecture: x64 |
| 41 |
|
| 42 |
- name: Install dependencies |
| 43 |
run: | |
| 44 |
sudo apt -y update |
| 45 |
sudo apt -y install gcc libsystemd-dev |
| 46 |
python -m pip install pytest sphinx |
| 47 |
|
| 48 |
- name: Build (Python ${{ matrix.python }}) |
| 49 |
run: | |
| 50 |
set -x |
| 51 |
make -j |
| 52 |
make doc SPHINXOPTS="-W -v" |
| 53 |
|
| 54 |
- name: Test (Python ${{ matrix.python }}) |
| 55 |
run: | |
| 56 |
make check |