From 94007b36e5b0e09c5af22e0966763a0dcfb8b9e4 Mon Sep 17 00:00:00 2001 From: Michał Górny Date: Tue, 13 Sep 2022 19:38:51 +0200 Subject: Add github CI workflow MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny --- .github/workflows/ci.yaml | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 .github/workflows/ci.yaml (limited to '.github') 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 -- cgit v1.2.3