From c9ca4fc11b18157c87eccdcb6eec0465ee434c3f Mon Sep 17 00:00:00 2001 From: Seth Morton Date: Tue, 28 Feb 2023 21:47:50 -0800 Subject: Add FreeBSD CI job --- .github/workflows/tests.yml | 21 +++++++++++++++++++++ tox.ini | 1 - 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 34fa9d2..64065ce 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -59,3 +59,24 @@ jobs: - name: Upload to CodeCov uses: codecov/codecov-action@v3 + + test-bsd: + name: Test on FreeBSD + runs-on: macos-12 + + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Install and Run Tests + uses: vmactions/freebsd-vm@v0 + with: + prepare: | + pkg install -y python3 + + run: | + python3 -m venv .venv + source .venv/bin/activate.csh + pip install --upgrade pip + pip install pytest pytest-mock hypothesis + python -m pytest --hypothesis-profile=slow-tests diff --git a/tox.ini b/tox.ini index 833d005..3fa2378 100644 --- a/tox.ini +++ b/tox.ini @@ -25,7 +25,6 @@ deps = pytest-cov pytest-mock hypothesis - semver extras = {env:WITH_EXTRAS:} commands = -- cgit v1.2.1