diff options
author | Frantisek Sumsal <frantisek@sumsal.cz> | 2022-03-06 18:26:24 +0100 |
---|---|---|
committer | Frantisek Sumsal <frantisek@sumsal.cz> | 2022-04-14 13:09:54 +0200 |
commit | 720d3cb73813d9b85e4439bc549e11b20b34a19d (patch) | |
tree | 615f3321378d5dc932a8234fdc8581f31f0a61d1 | |
parent | 76e7478a34b7178b18ba5153f1c1dc89faa53cfd (diff) | |
download | python-systemd-720d3cb73813d9b85e4439bc549e11b20b34a19d.tar.gz |
ci: move the CI to GitHub Actions
-rw-r--r-- | .github/workflows/build.yml | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..ff2a545 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,51 @@ +--- +# vi: ts=2 sw=2 et: +# SPDX-License-Identifier: LGPL-2.1-or-later +# +name: Build test +on: [pull_request] + +permissions: + contents: read + +jobs: + build: + runs-on: ubuntu-20.04 + concurrency: + group: ${{ github.workflow }}-${{ matrix.python }}-${{ github.ref }} + cancel-in-progress: true + strategy: + fail-fast: false + matrix: + python: [ + "3.7", + "3.8", + "3.9", + "3.10", + ] + name: Python ${{ matrix.python }} + steps: + - name: Repository checkout + uses: actions/checkout@v2 + + - name: Configure Python ${{ matrix.python }} + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python }} + architecture: x64 + + - name: Install dependencies + run: | + sudo apt -y update + sudo apt -y install gcc libsystemd-dev + python -m pip install pytest sphinx + + - name: Build (Python ${{ matrix.python }}) + run: | + set -x + make -j + make doc SPHINXOPTS="-W -v" + + - name: Test (Python ${{ matrix.python }}) + run: | + make check |