Skip to content

VMs

VMs #61

Workflow file for this run

name: VMs
on:
workflow_dispatch:
inputs:
variants:
default: freebsd openbsd netbsd solaris dragonflybsd omnios
env:
test_code: |
set -e
export FORCE_COLOR=1
. /tmp/env/bin/activate
pip install -Uq setuptools pip
pip install -qe . -r tests/requirements.txt psutil
pip freeze
CC=gcc ./test
python stdlib/availability.py
ls packaging/contains-slugs/dist/
not which clang || CC=clang ./test
jobs:
freebsd:
runs-on: ubuntu-latest
if: contains(inputs.variants, 'freebsd')
steps:
- uses: actions/checkout@v4
- uses: vmactions/freebsd-vm@v1
with:
run: |
pkg install -y python311 py311-sqlite3 gcc
python3.11 -m venv /tmp/env
${{ env.test_code }}
openbsd:
runs-on: ubuntu-latest
if: contains(inputs.variants, 'openbsd')
steps:
- uses: actions/checkout@v4
- uses: vmactions/openbsd-vm@v1
with:
run: |
pkg_add python3 gcc clang
python3 -m venv /tmp/env
${{ env.test_code }}
netbsd:
runs-on: ubuntu-latest
if: contains(inputs.variants, 'netbsd')
steps:
- uses: actions/checkout@v4
- uses: vmactions/netbsd-vm@v1
with:
run: |
pkg_search python
pkg_search py3
pkg_add python312
echo y | pkgin python312
pkg_add py310
pkg_add py39
pkg_add py12
python3 -m venv /tmp/env
${{ env.test_code }}
- uses: neilpang/debugger-action@master
if: failure()
dragonflybsd:
runs-on: ubuntu-latest
if: contains(inputs.variants, 'dragonflybsd')
steps:
- uses: actions/checkout@v4
- uses: vmactions/dragonflybsd-vm@v1
with:
run: |
pkg_search python
pkg_search py3
pkg_add python312
echo y | pkgin python312
pkg_add py310
pkg_add py39
pkg_add py12
python3 -m venv /tmp/env
${{ env.test_code }}
- uses: neilpang/debugger-action@master
if: failure()
solaris:
runs-on: ubuntu-latest
if: contains(inputs.variants, 'solaris')
steps:
- uses: actions/checkout@v4
- uses: vmactions/solaris-vm@v1
with:
run: |
pkg install runtime/python-39 developer/gcc developer/llvm/clang
python3.9 -m venv /tmp/env
${{ env.test_code }}
- uses: neilpang/debugger-action@master
if: failure()
omnios:
runs-on: ubuntu-latest
if: contains(inputs.variants, 'omnios')
steps:
- uses: actions/checkout@v4
- uses: vmactions/omnios-vm@v1
with:
run: |
pkg install developer/gcc13 ooce/developer/clang-18
python -m venv /tmp/env
${{ env.test_code }}