Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BSD & GitHub Actions #4271

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 51 additions & 0 deletions .github/workflows/bsd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Scapy Unit Tests on *BSD

on:
pull_request:
#types: [ labeled ]
branches: [ master ]

jobs:
freebsd:
#if: ${{ github.event.label.name == 'ci/bsd' || github.event.label.name == 'ci/freebsd' }}
#if: contains(github.event.pull_request.labels.*.name, 'ci/bsd')
runs-on: macos-12
name: FreeBSD
steps:
- uses: actions/checkout@v2
- name: Run tox
id: tox
uses: vmactions/freebsd-vm@v0
with:
release: 13.1
copyback: false
prepare: |
pkg install --yes git python2 python3 py39-pip py27-sqlite3 py39-sqlite3 rust sudo

run: |
env
pip install tox
tox -e 'py27-bsd_non_root,py27-bsd_root,py39-bsd_non_root,py39-bsd_root' -- -qq

openbsd:
#if: ${{ github.event.label.name == 'ci/bsd' || github.event.label.name == 'ci/openbsd' }}
if: contains(github.event.pull_request.labels.*.name, 'ci/bsd')
runs-on: macos-12
name: OpenBSD
steps:
- uses: actions/checkout@v2
- name: Run tox
id: tox
uses: vmactions/openbsd-vm@v0
with:
release: 7.1
copyback: false
prepare: |
pkg_add git python-2.7.18p7 python-3.9.12 py3-pip-22.0.4 rust-1.59.0 py3-cryptography-36.0.1 sudo-1.9.10

run: |
env
ls
pip3 install tox
#tox -e 'py27-bsd_non_root,py27-bsd_root,py39-bsd_non_root,py39-bsd_root' -- -qq
tox -e 'py39-bsd_non_root,py39-bsd_root' -- -qq
Loading