summaryrefslogtreecommitdiff
path: root/.github/workflows/ci.yaml
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2022-09-13 19:38:51 +0200
committerMichał Górny <mgorny@gentoo.org>2022-09-14 09:54:02 +0200
commit94007b36e5b0e09c5af22e0966763a0dcfb8b9e4 (patch)
treeeae8a8d72224dba4eecc686bda385638c4c6cce3 /.github/workflows/ci.yaml
parent932563f53c9e3662dd028df48f0ec092f3e8dcf1 (diff)
downloadgemato-94007b36e5b0e09c5af22e0966763a0dcfb8b9e4.tar.gz
Add github CI workflow
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to '.github/workflows/ci.yaml')
-rw-r--r--.github/workflows/ci.yaml47
1 files changed, 47 insertions, 0 deletions
diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml
new file mode 100644
index 0000000..f9bf49f
--- /dev/null
+++ b/.github/workflows/ci.yaml
@@ -0,0 +1,47 @@
+name: CI
+on: [push, pull_request]
+jobs:
+ build:
+ strategy:
+ matrix:
+ python-version: ["3.8", "3.9", "3.10", "3.11.0-alpha - 3.11", "pypy-3.8", "pypy-3.9"]
+ variant: ["", "-norequests-noresponses", "-noresponses"]
+ gpg: ["no-gpg", "vanilla-gpg"]
+ fail-fast: false
+ runs-on: ubuntu-22.04
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v2
+ - name: Set up Python
+ uses: actions/setup-python@v3
+ with:
+ python-version: ${{ matrix.python-version }}
+ - name: Uninstall GnuPG
+ if: ${{ matrix.gpg == 'no-gpg' }}
+ run: sudo apt remove gpg
+ - name: Install vanilla GnuPG
+ if: ${{ matrix.gpg == 'vanilla-gpg' }}
+ run: |
+ sudo apt install libassuan-dev libksba-dev libnpth-dev
+ wget -q -O - https://gnupg.org/ftp/gcrypt/gnupg/gnupg-2.2.39.tar.bz2 | tar -xj
+ cd gnupg-*/
+ ./configure
+ make -j2
+ sudo make install
+ - name: Install tox
+ run: pip install tox
+ - name: Test using tox
+ run: tox -e py${{ matrix.variant }}
+ qa:
+ runs-on: ubuntu-22.04
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v2
+ - name: Set up Python
+ uses: actions/setup-python@v3
+ with:
+ python-version: "3.10"
+ - name: Install tox
+ run: pip install tox
+ - name: Test using tox
+ run: tox -e qa