Skip to content

Commit

Permalink
create separate freebsd.yml file
Browse files Browse the repository at this point in the history
  • Loading branch information
giampaolo committed Apr 11, 2023
1 parent 9efbde0 commit 9672b53
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 25 deletions.
26 changes: 1 addition & 25 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,31 +109,7 @@ jobs:
# make generate-manifest
# python setup.py sdist
# mv dist/psutil*.tar.gz wheelhouse/

# FreeBSD (tests only)
py3-freebsd:
runs-on: macos-12
steps:
- name: Cancel previous runs
uses: styfle/cancel-workflow-action@0.9.1
with:
access_token: ${{ github.token }}

- uses: actions/checkout@v3

- name: Run tests
id: test
uses: vmactions/freebsd-vm@v0
with:
usesh: true
prepare: pkg install -y gcc python3
run: |
set +e
python3 -m pip install --user setuptools
make install
make test
make test-memleaks
#
# # Run linters
# linters:
# runs-on: ubuntu-latest
Expand Down
25 changes: 25 additions & 0 deletions .github/workflows/freebsd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# https://github.com/vmactions/freebsd-vm
on: [push, pull_request]
name: build
concurrency:
group: ${{ github.ref }}-${{ github.workflow }}-${{ github.event_name }}-${{ github.ref == format('refs/heads/{0}', github.event.repository.default_branch) && github.sha || '' }}
cancel-in-progress: true
jobs:
py3-freebsd:
runs-on: macos-12
steps:
- uses: actions/checkout@v3
- name: Run tests
id: test-freebsd
uses: vmactions/freebsd-vm@v0
with:
usesh: true
prepare: |
pkg install -y gcc python3
run: |
set +e
make install-pip
python3 -m pip install --user setuptools
make install
make test
make test-memleaks
1 change: 1 addition & 0 deletions .github/workflows/openbsd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ jobs:
pkg_add gcc python3
run: |
set +e
make install-pip
python3 -m pip install --user setuptools
make install
make test
Expand Down

0 comments on commit 9672b53

Please sign in to comment.