-
Notifications
You must be signed in to change notification settings - Fork 1
86 lines (79 loc) · 2.09 KB
/
test-vagrant.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
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 -U setuptools pip
pip install -e . -r tests/requirements.txt psutil
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
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
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 }}
solaris:
runs-on: ubuntu-latest
if: contains(inputs.variants, 'solaris')
steps:
- uses: actions/checkout@v4
- uses: vmactions/solaris-vm@v1
with:
run: |
python -m venv /tmp/env
${{ env.test_code }}
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
pkg install ooce/developer/clang-18
python -m venv /tmp/env
${{ env.test_code }}