Skip to content

Commit

Permalink
CI for FreeBSD (#148)
Browse files Browse the repository at this point in the history
  • Loading branch information
chayim authored Jan 30, 2023
1 parent b56cda3 commit 1b2e6fc
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/freebsd.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: FreeBSD

on:
push:
paths-ignore:
- 'docs/**'
- '**/*.rst'
- '**/*.md'
branches:
- master
- '[0-9].[0-9]'
pull_request:
branches:
- master
- '[0-9].[0-9]'

permissions:
contents: read # to fetch code (actions/checkout)

jobs:

run-tests:
runs-on: macos-12
timeout-minutes: 30
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
name: Python ${{ matrix.python-version }} FreeBSD
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: build and test
uses: vmactions/freebsd-vm@v0
with:
envs: 'ACTIONS_ALLOW_UNSECURE_COMMANDS'
usesh: true
sync: rsync
copyback: false
prepare: pkg install -y bash curl python39
run: |
curl -s https://bootstrap.pypa.io/get-pip.py -o get-pip.py
python3.9 get-pip.py
/usr/local/bin/pip install -U pip setuptools wheel
/usr/local/bin/pip install -r dev_requirements.txt
/usr/local/bin/python3.9 setup.py build_ext --inplace
pytest
python3.9 setup.py bdist_wheel

0 comments on commit 1b2e6fc

Please sign in to comment.