Skip to content

Commit

Permalink
Github: introduce CI for OpenBSD.
Browse files Browse the repository at this point in the history
  • Loading branch information
xavierog committed Nov 27, 2024
1 parent eb25340 commit d16e88c
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 1 deletion.
34 changes: 34 additions & 0 deletions .github/workflows/openbsd.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: 'Moulti checks (OpenBSD)'
on:
- push
jobs:
openbsdchecks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: OpenBSD
uses: vmactions/openbsd-vm@v1
with:
usesh: true
prepare: |
pkg_add python py3-pip bash
run: |
set -e
python3.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
2 changes: 1 addition & 1 deletion tests/scripts/sleep.bash
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
if [ "${MOULTI_TEST_BEACON}" ]; then
touch "${MOULTI_TEST_BEACON}"
function cleanup {
unlink "${MOULTI_TEST_BEACON}"
rm -f "${MOULTI_TEST_BEACON}"
}
trap cleanup EXIT
fi
Expand Down

0 comments on commit d16e88c

Please sign in to comment.