From 8fc5ed1b20c9c9fab75164aae1984698a46974dc Mon Sep 17 00:00:00 2001 From: Giampaolo Rodola Date: Sun, 15 Nov 2020 00:27:05 +0100 Subject: Rewrite Linux prlimit() with ctypes (Linux wheels) (#1879) --- .github/workflows/build_wheel.yml | 45 ++++++++++++++++++++++++--------------- 1 file changed, 28 insertions(+), 17 deletions(-) (limited to '.github') 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/ + -- cgit v1.2.1