summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorGiampaolo Rodola <g.rodola@gmail.com>2020-11-15 00:27:05 +0100
committerGitHub <noreply@github.com>2020-11-15 00:27:05 +0100
commit8fc5ed1b20c9c9fab75164aae1984698a46974dc (patch)
treed588d132137ce6b47c34ccc8c59117d2e75cb0b4 /.github
parentfd69f22ee5ca38ceff32ae3fac15420c5d8fce29 (diff)
downloadpsutil-8fc5ed1b20c9c9fab75164aae1984698a46974dc.tar.gz
Rewrite Linux prlimit() with ctypes (Linux wheels) (#1879)
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/build_wheel.yml45
1 files changed, 28 insertions, 17 deletions
diff --git a/.github/workflows/build_wheel.yml b/.github/workflows/build_wheel.yml
index 4f9eeef9..1a8b4868 100644
--- a/.github/workflows/build_wheel.yml
+++ b/.github/workflows/build_wheel.yml
@@ -1,4 +1,4 @@
-name: Build wheels
+name: Linux, macOS, Windows
on: [push, pull_request]
@@ -6,35 +6,46 @@ jobs:
wheel:
name: ${{ matrix.os }}
runs-on: ${{ matrix.os }}
+ timeout-minutes: 30
strategy:
- fail-fast: false
+ fail-fast: false # whether to exit the whole run on first failure
matrix:
- os: [macos-latest, ubuntu-latest]
+ os: [ubuntu-latest, macos-latest, windows-latest]
+ include:
+ - {name: Linux, python: '3.9', os: ubuntu-latest}
env:
CIBW_TEST_COMMAND: python -u -Wa {project}/psutil/tests/runner.py
CIBW_TEST_COMMAND_MACOS: LC_ALL='en_US.utf8' python -Wa {project}/psutil/tests/runner.py
CIBW_TEST_EXTRAS: test
- CIBW_SKIP: pp*-macosx_x86_64
+ # https://cibuildwheel.readthedocs.io/en/stable/options/#build-skip
+ CIBW_SKIP: cp35-* pp*
steps:
- - uses: actions/checkout@v1
- - uses: actions/setup-python@v1
- name: Install Python 3.7
+ - uses: actions/checkout@v2
+ - uses: actions/setup-python@v2
with:
- python-version: '3.7'
+ python-version: 3.9
- - name: Install Visual C++ for Python 2.7
- if: startsWith(matrix.os, 'windows')
+ - name: (Windows) install Visual C++ for Python 2.7
+ if: matrix.os == 'windows-latest'
run: |
choco install vcpython27 -f -y
- - name: Install cibuildwheel
- run: pip install cibuildwheel==1.4.1
-
- - name: Build wheels
- run: cibuildwheel .
+ - name: Run tests
+ run: |
+ pip install cibuildwheel
+ cibuildwheel .
- - name: Upload wheels
- uses: actions/upload-artifact@v1
+ - name: Create wheels
+ uses: actions/upload-artifact@v2
with:
name: wheels
path: wheelhouse
+
+ - name: Print hashes
+ if: matrix.os == 'ubuntu-latest'
+ run: |
+ make generate-manifest
+ python setup.py sdist
+ mv dist/psutil*.tar.gz wheelhouse/
+ python scripts/internal/print_hashes.py wheelhouse/
+