Skip to content

Commit

Permalink
Github: introduce CI for NetBSD.
Browse files Browse the repository at this point in the history
  • Loading branch information
xavierog committed Nov 27, 2024
1 parent d16e88c commit a4be6bf
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/netbsd.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: 'Moulti checks (NetBSD)'
on:
- push
jobs:
netbsdchecks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: NetBSD
uses: vmactions/netbsd-vm@v1
with:
usesh: true
prepare: |
PKG_PATH="http://cdn.NetBSD.org/pub/pkgsrc/packages/NetBSD/$(uname -p)/$(uname -r|cut -f '1 2' -d.|cut -f 1 -d_)/All"
export PKG_PATH
/usr/sbin/pkg_add py311-pip
run: |
set -e
python3.11 --version
pip-3.11 --version || pip3.11 --version || pip --version
python3.11 -m venv .venv
. .venv/bin/activate
pip install --upgrade pip
# Remove problematic python packages:
# - bpython: unnecessary, depends on greenlet and thus on a recent C++ compiler
# - ruff: depends on a Rust compiler
# - twine: unnecessary, depends on a Rust compiler
sed -i '/bpython/d; /ruff/d; /twine/d' requirements.txt
pip install -r requirements.txt
# no ruff, no ruff check
mypy src/moulti
pylint src/moulti
pip install -e .
# This runs all tests except:
# - test_diff_with_delta (requires delta 0.18.x)
pytest -v

0 comments on commit a4be6bf

Please sign in to comment.