Fixup broken CI #118
Workflow file for this run
This file contains hidden or 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
| --- | |
| # vi: ts=2 sw=2 et: | |
| # SPDX-License-Identifier: LGPL-2.1-or-later | |
| # | |
| name: Build test | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| permissions: | |
| contents: read | |
| jobs: | |
| build: | |
| runs-on: ubuntu-24.04 | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ matrix.python }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python: [ | |
| "3.9", | |
| "3.10", | |
| "3.11", | |
| "3.12", | |
| "3.13" | |
| ] | |
| name: Python ${{ matrix.python }} | |
| steps: | |
| - name: Repository checkout | |
| uses: actions/checkout@v4 | |
| - name: Configure Python ${{ matrix.python }} | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python }} | |
| architecture: x64 | |
| - name: Install dependencies | |
| run: | | |
| sudo apt -y update | |
| sudo apt -y install gcc libsystemd-dev python3-setuptools | |
| - name: Create virtualenv | |
| run: | | |
| python3 -m venv ~/${{ matrix.python }} | |
| - name: Install python dependencies | |
| run: | | |
| source ~/${{ matrix.python }}/bin/activate | |
| python3 -m pip install pytest sphinx setuptools | |
| - name: Build (Python ${{ matrix.python }}) | |
| run: | | |
| set -x | |
| source ~/${{ matrix.python }}/bin/activate | |
| make -j | |
| make doc SPHINXOPTS="-W -v" | |
| - name: Test (Python ${{ matrix.python }}) | |
| run: | | |
| source ~/${{ matrix.python }}/bin/activate | |
| make check |