Skip to content

Commit 1b2e6fc

Browse files
authored
CI for FreeBSD (#148)
1 parent b56cda3 commit 1b2e6fc

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed

.github/workflows/freebsd.yaml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: FreeBSD
2+
3+
on:
4+
push:
5+
paths-ignore:
6+
- 'docs/**'
7+
- '**/*.rst'
8+
- '**/*.md'
9+
branches:
10+
- master
11+
- '[0-9].[0-9]'
12+
pull_request:
13+
branches:
14+
- master
15+
- '[0-9].[0-9]'
16+
17+
permissions:
18+
contents: read # to fetch code (actions/checkout)
19+
20+
jobs:
21+
22+
run-tests:
23+
runs-on: macos-12
24+
timeout-minutes: 30
25+
env:
26+
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
27+
name: Python ${{ matrix.python-version }} FreeBSD
28+
steps:
29+
- uses: actions/checkout@v3
30+
with:
31+
submodules: recursive
32+
- name: build and test
33+
uses: vmactions/freebsd-vm@v0
34+
with:
35+
envs: 'ACTIONS_ALLOW_UNSECURE_COMMANDS'
36+
usesh: true
37+
sync: rsync
38+
copyback: false
39+
prepare: pkg install -y bash curl python39
40+
run: |
41+
curl -s https://bootstrap.pypa.io/get-pip.py -o get-pip.py
42+
python3.9 get-pip.py
43+
/usr/local/bin/pip install -U pip setuptools wheel
44+
/usr/local/bin/pip install -r dev_requirements.txt
45+
/usr/local/bin/python3.9 setup.py build_ext --inplace
46+
pytest
47+
python3.9 setup.py bdist_wheel

0 commit comments

Comments
 (0)