From 7f7b48fb25b2b60759b10d90656fb29183bfeab2 Mon Sep 17 00:00:00 2001 From: mayeut Date: Sun, 15 Dec 2024 17:44:43 +0100 Subject: [PATCH] chore: test on FreeBSD & OpenBSD --- .github/workflows/build.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index babb7854..7b102ad0 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -219,6 +219,34 @@ jobs: - name: Test installed SDist run: .venv/bin/pytest ./tests + test_sdist_bsd: + name: Test SDist on ${{ matrix.os }} + needs: [build_sdist] + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + os: ["freebsd", "openbsd"] + + steps: + - uses: actions/checkout@v4 + - uses: actions/download-artifact@v4 + with: + name: cibw-sdist + path: dist + + - name: Install & Test SDist + uses: vmactions/${{ matrix.os }}-vm@v1 + with: + usesh: true + prepare: | + ${{ matrix.os == 'freebsd' && 'pkg install -y' || 'pkg_add' }} python3 gcc openssl-devel + run: | + python3 -m pip install dist/*.tar.gz + rm -rf dist + python3 -m pip install pytest pytest-cov + python3 -m pytest ./tests + bootstrap_build: name: Source only build on ${{ matrix.os }} needs: [lint]