Skip to content

Commit

Permalink
chore: test on FreeBSD & OpenBSD
Browse files Browse the repository at this point in the history
  • Loading branch information
mayeut committed Dec 15, 2024
1 parent 47e072b commit 7f7b48f
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 7f7b48f

Please sign in to comment.