-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: mayeut <[email protected]>
- Loading branch information
Showing
7 changed files
with
108 additions
and
154 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -20,15 +20,15 @@ | |
on: [push, pull_request] | ||
name: build | ||
jobs: | ||
# Linux + macOS + Python 3.6+ | ||
linux-macos-py3: | ||
# Linux + macOS + Windows Python 3.6+ | ||
py3: | ||
name: ${{ matrix.os }}-py36-plus | ||
runs-on: ${{ matrix.os }} | ||
timeout-minutes: 20 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-20.04, macos-10.15] | ||
os: [ubuntu-20.04, macos-10.15, windows-2019] | ||
|
||
steps: | ||
- name: Cancel previous runs | ||
|
@@ -62,6 +62,49 @@ jobs: | |
mv dist/psutil*.tar.gz wheelhouse/ | ||
python scripts/internal/print_hashes.py wheelhouse/ | ||
# Windows cp37+ tests | ||
# psutil tests do not like running from a virtualenv with python>=3.7 so | ||
# not using cibuildwheel for those. run them "manually" with this job. | ||
windows-py3-test: | ||
name: windows-py3-test-${{ matrix.python }}-${{ matrix.architecture }} | ||
needs: py3 | ||
runs-on: windows-2019 | ||
timeout-minutes: 20 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python: ["3.7", "3.8", "3.9", "3.10", "3.11-dev"] | ||
architecture: ["x86", "x64"] | ||
|
||
steps: | ||
- name: Cancel previous runs | ||
uses: styfle/[email protected] | ||
with: | ||
access_token: ${{ github.token }} | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v3 | ||
with: | ||
python-version: "${{ matrix.python }}" | ||
architecture: "${{ matrix.architecture }}" | ||
cache: pip | ||
cache-dependency-path: .github/workflows/build.yml | ||
- name: Download wheels | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: wheels | ||
path: wheelhouse | ||
- name: Run tests | ||
run: | | ||
mkdir .tests | ||
cd .tests | ||
pip install $(find ../wheelhouse -name '*-cp36-abi3-${{ matrix.architecture == 'x86' && 'win32' || 'win_amd64'}}.whl')[test] | ||
export PYTHONWARNINGS=always | ||
export PYTHONUNBUFFERED=1 | ||
export PSUTIL_DEBUG=1 | ||
python ../psutil/tests/runner.py | ||
python ../psutil/tests/test_memleaks.py | ||
shell: bash | ||
|
||
# Linux + macOS + Python 2.7 & 3.5 | ||
linux-macos-py2: | ||
name: ${{ matrix.os }}-py27-py35 | ||
|
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.