Skip to content

Commit b3a847d

Browse files
committed
Github: introduce CI for NetBSD.
1 parent 4fa4cc0 commit b3a847d

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/netbsd.yaml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: 'Moulti checks (NetBSD)'
2+
on:
3+
- push
4+
jobs:
5+
netbsdchecks:
6+
runs-on: ubuntu-latest
7+
steps:
8+
- uses: actions/checkout@v4
9+
- name: NetBSD
10+
uses: vmactions/netbsd-vm@v1
11+
with:
12+
usesh: true
13+
prepare: |
14+
PKG_PATH="http://cdn.NetBSD.org/pub/pkgsrc/packages/NetBSD/$(uname -p)/$(uname -r|cut -f '1 2' -d.|cut -f 1 -d_)/All"
15+
export PKG_PATH
16+
/usr/sbin/pkg_add py311-pip
17+
run: |
18+
set -e
19+
python3.11 --version
20+
pip-3.11 --version || pip3.11 --version || pip --version
21+
python3.11 -m venv .venv
22+
. .venv/bin/activate
23+
pip install --upgrade pip
24+
# Remove problematic python packages:
25+
# - bpython: unnecessary, depends on greenlet and thus on a recent C++ compiler
26+
# - ruff: depends on a Rust compiler
27+
# - twine: unnecessary, depends on a Rust compiler
28+
sed -i '/bpython/d; /ruff/d; /twine/d' requirements.txt
29+
pip install -r requirements.txt
30+
# no ruff, no ruff check
31+
mypy src/moulti
32+
pylint src/moulti
33+
pip install -e .
34+
# This runs all tests except:
35+
# - test_diff_with_delta (requires delta 0.18.x)
36+
pytest -v

0 commit comments

Comments
 (0)