VMs #51
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: VMs | |
on: | |
workflow_dispatch: | |
inputs: | |
variants: | |
default: freebsd openbsd netbsd solaris dragonflybsd omnios | |
env: | |
test_code: | | |
export FORCE_COLOR=1 | |
. env/bin/activate | |
pip install -Ue . -r tests/requirements.txt psutil | |
./test | |
python stdlib/availability.py | |
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 | |
python3.11 -m venv 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 | |
python3 -m venv env | |
${{ env.test_code }} | |
solaris: | |
runs-on: ubuntu-latest | |
if: contains(inputs.variants, 'solaris') | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: vmactions/openbsd-vm@v1 | |
with: | |
run: | | |
python -m venv env | |
${{ env.test_code }} |