This repository has been archived by the owner on Jun 22, 2024. It is now read-only.
forked from giampaolo/psutil
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/giampaolo/psutil
* 'master' of https://github.com/giampaolo/psutil: (22 commits) use glob.glob() in setup.py OSX / refact: get rid of process_info.c (giampaolo#2243) OSX C refact: reconstruct _psutil_osx.c to preserve history OSX: rename psutil/_psutil_osx.c to arch/osx/proc.c to preserve GIT history OSX big C refactoring (giampaolo#2242) fix failing users() test; update HISTORY; give CREDITS to @0-wiz-0 for giampaolo#2241 win C refact: reconstruct _psutil_windows.c trying to preserve history rename _psutil_windows.c -> proc.c Win, C, refact: move proc funcs into proc.c file BSD big refact: move proc funcs in new proc.c file Fix build on NetBSD due to missing .h include. (giampaolo#2241) Win, C, refact: move boot_time() and users() in new sys.c Windows / refact: new sensors.c file C refact: remove useless cmdline / cwd / environ layers. Call direct functions pre release Add CI testing for OpenBSD and NetBSD (giampaolo#2240) Fix giampaolo#2239 / proc name(): don't fail with ZombieProcess on cmdline() giampaolo#2238: passed wrong value to Py_BuildValue fix giampaolo#2238 if cwd() cannot be determined always return "" instead of None Fix giampaolo#2237, OpenBSD, cwd(): return None instead of FileNotFoundError ...
- Loading branch information
Showing
72 changed files
with
5,243 additions
and
4,970 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
# Execute tests on *BSD platforms. Does not produce wheels. | ||
# Useful URLs: | ||
# https://github.com/vmactions/freebsd-vm | ||
# https://github.com/vmactions/openbsd-vm | ||
# https://github.com/vmactions/netbsd-vm | ||
|
||
on: [push, pull_request] | ||
name: bsd-tests | ||
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: | ||
freebsd: | ||
runs-on: macos-12 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Run tests | ||
uses: vmactions/freebsd-vm@v0 | ||
with: | ||
usesh: true | ||
prepare: | | ||
pkg install -y gcc python3 | ||
run: | | ||
set -e -x | ||
make install-pip | ||
python3 -m pip install --user setuptools | ||
make install | ||
make test | ||
make test-memleaks | ||
openbsd: | ||
runs-on: macos-12 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Run tests | ||
uses: vmactions/openbsd-vm@v0 | ||
with: | ||
usesh: true | ||
prepare: | | ||
set -e | ||
pkg_add gcc python3 | ||
run: | | ||
set -e | ||
make install-pip | ||
python3 -m pip install --user setuptools | ||
make install | ||
make test | ||
make test-memleaks | ||
netbsd: | ||
runs-on: macos-12 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Run tests | ||
uses: vmactions/netbsd-vm@v0 | ||
with: | ||
usesh: true | ||
prepare: | | ||
set -e | ||
pkg_add -v pkgin | ||
pkgin update | ||
pkgin -y install python311-* py311-setuptools-* gcc12-* | ||
run: | | ||
set -e | ||
make install-pip PYTHON=python3.11 | ||
python3.11 -m pip install --user setuptools | ||
make install PYTHON=python3.11 | ||
make test PYTHON=python3.11 | ||
make test-memleaks PYTHON=python3.11 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,15 @@ | ||
# Executed on every push by GitHub Actions. This runs CI tests and | ||
# generates wheels (not all) on the following platforms: | ||
# Runs CI tests and generates wheels on the following platforms: | ||
# | ||
# * Linux | ||
# * macOS | ||
# * Windows | ||
# * FreeBSD | ||
# * Linux (py2 and py3) | ||
# * macOS (py2 and py3) | ||
# * Windows (py3, py2 is done by appveyor) | ||
# | ||
# To skip certain builds see: | ||
# https://cibuildwheel.readthedocs.io/en/stable/options/#build-skip | ||
# | ||
# External GH actions: | ||
# Useful URLs: | ||
# * https://github.com/pypa/cibuildwheel | ||
# * https://github.com/actions/checkout | ||
# * https://github.com/actions/setup-python | ||
# * https://github.com/actions/upload-artifact | ||
# * https://github.com/marketplace/actions/cancel-workflow-action | ||
# * https://github.com/vmactions/freebsd-vm | ||
|
||
on: | ||
pull_request: | ||
|
@@ -164,34 +158,6 @@ jobs: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: ./public | ||
|
||
# FreeBSD (tests only) | ||
py3-freebsd: | ||
runs-on: macos-12 | ||
steps: | ||
- name: Cancel previous runs | ||
uses: styfle/[email protected] | ||
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 | ||
export \ | ||
PYTHONUNBUFFERED=1 \ | ||
PYTHONWARNINGS=always \ | ||
PSUTIL_DEBUG=1 | ||
python3 -m pip install --user setuptools | ||
python3 setup.py install | ||
python3 psutil/tests/runner.py | ||
python3 psutil/tests/test_memleaks.py | ||
# Run linters | ||
linters: | ||
runs-on: ubuntu-latest | ||
|
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
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
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
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
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
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
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
Oops, something went wrong.