From 81028c2d62bdcec07a6aaf86388ba3ceeabbbd1a Mon Sep 17 00:00:00 2001 From: Giampaolo Rodola Date: Sun, 17 May 2020 23:37:20 +0200 Subject: [PATCH] reset old yml file --- .github/workflows/build_wheels.yml | 99 +++++++++++++++--------------- 1 file changed, 50 insertions(+), 49 deletions(-) diff --git a/.github/workflows/build_wheels.yml b/.github/workflows/build_wheels.yml index 48bf02128..7d230b900 100644 --- a/.github/workflows/build_wheels.yml +++ b/.github/workflows/build_wheels.yml @@ -1,76 +1,77 @@ -name: Build wheels +name: Build wheel on: [push, pull_request] jobs: - build_wheels: - name: Build wheel on ${{ matrix.os }} + wheel_without_test: + name: build wheel for ${{ matrix.os }} runs-on: ${{ matrix.os }} strategy: + fail-fast: false matrix: - os: [ubuntu-18.04, windows-latest, macos-latest] + os: [windows-latest, macos-latest, ubuntu-latest] env: + CIBW_SKIP: "pp27-*win* cp27-*manylinux* pp-*manylinux*" CIBW_MANYLINUX_X86_64_IMAGE: manylinux2014 CIBW_MANYLINUX_I686_IMAGE: manylinux2014 steps: - uses: actions/checkout@v1 - - uses: actions/setup-python@v1 - name: Install Python + name: Install Python 3.7 with: python-version: '3.7' - - name: Install cibuildwheel - run: | - python -m pip install cibuildwheel==1.4.1 - - name: Install Visual C++ for Python 2.7 if: startsWith(matrix.os, 'windows') run: | choco install vcpython27 -f -y - - name: Build wheel - run: | - python -m cibuildwheel --output-dir wheelhouse + - name: "install cibuildwheel" + run: pip install cibuildwheel==1.4.1 + + - name: build wheel + run: cibuildwheel . - - uses: actions/upload-artifact@v1 + - name: Upload wheels + uses: actions/upload-artifact@v1 with: - name: wheels - path: ./wheelhouse + name: wheels2 + path: wheelhouse + + wheel: + name: build wheel for ${{ matrix.os }} + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + os: [windows-latest, macos-latest, ubuntu-latest] + env: + CIBW_SKIP: "pp27-*win* *27* cp27-*manylinux* pp-*manylinux*" + CIBW_TEST_COMMAND: python -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_MANYLINUX_X86_64_IMAGE: manylinux2014 + CIBW_MANYLINUX_I686_IMAGE: manylinux2014 + steps: + - uses: actions/checkout@v1 + - uses: actions/setup-python@v1 + name: Install Python 3.7 + with: + python-version: '3.7' - # wheel: - # name: build wheel for ${{ matrix.os }} - # runs-on: ${{ matrix.os }} - # strategy: - # fail-fast: false - # matrix: - # os: [windows-latest, macos-latest, ubuntu-latest] - # env: - # CIBW_SKIP: "pp27-*win* *27* cp27-*manylinux* pp-*manylinux*" - # CIBW_TEST_COMMAND: python -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_MANYLINUX_X86_64_IMAGE: manylinux2014 - # CIBW_MANYLINUX_I686_IMAGE: manylinux2014 - # steps: - # - uses: actions/checkout@v1 - # - uses: actions/setup-python@v1 - # name: Install Python 3.7 - # with: - # python-version: '3.7' - # - name: Install Visual C++ for Python 2.7 - # if: startsWith(matrix.os, 'windows') - # run: | - # choco install vcpython27 -f -y + - name: Install Visual C++ for Python 2.7 + if: startsWith(matrix.os, 'windows') + run: | + choco install vcpython27 -f -y - # - name: "install cibuildwheel" - # run: pip install cibuildwheel==1.4.1 + - name: "install cibuildwheel" + run: pip install cibuildwheel==1.4.1 - # - name: build wheel - # run: cibuildwheel . + - name: build wheel + run: cibuildwheel . - # - name: Upload wheels - # uses: actions/upload-artifact@v1 - # with: - # name: wheels - # path: wheelhouse + - name: Upload wheels + uses: actions/upload-artifact@v1 + with: + name: wheels + path: wheelhouse