diff options
author | nicolargo <nicolas@nicolargo.com> | 2021-04-19 10:25:47 +0200 |
---|---|---|
committer | nicolargo <nicolas@nicolargo.com> | 2021-04-19 10:25:47 +0200 |
commit | e9e634f37248870a355419f4c96639573d081fb2 (patch) | |
tree | faf5d633393757042618834f8bd71f274307e462 | |
parent | 2fdc12d0a4a55d17963a7677fe40fbd6f71fdaec (diff) |
Clean build pipeline
-rw-r--r-- | .github/workflows/build.yml | 59 |
1 files changed, 13 insertions, 46 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f1ef60d1..3fe0ca21 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -14,17 +14,14 @@ jobs: strategy: fail-fast: false matrix: - # os: [ubuntu-latest, macos-latest, windows-latest] - os: [ubuntu-latest, macos-latest] - include: - - {name: Linux, python: '3.9', os: ubuntu-latest} - env: - CIBW_TEST_COMMAND: - PYTHONWARNINGS=always PYTHONUNBUFFERED=1 PSUTIL_TESTING=1 PSUTIL_DEBUG=1 python {project}/unitest.py && - PYTHONWARNINGS=always PYTHONUNBUFFERED=1 PSUTIL_TESTING=1 PSUTIL_DEBUG=1 python {project}/unitest-restful.py && - PYTHONWARNINGS=always PYTHONUNBUFFERED=1 PSUTIL_TESTING=1 PSUTIL_DEBUG=1 python {project}/unitest-xmlrpc.py - CIBW_TEST_EXTRAS: test - CIBW_SKIP: cp35-* pp* + os: [ubuntu-latest, macos-latest, windows-latest] + # env: + # CIBW_TEST_COMMAND: + # PYTHONWARNINGS=always PYTHONUNBUFFERED=1 PSUTIL_TESTING=1 PSUTIL_DEBUG=1 python {project}/unitest.py && + # PYTHONWARNINGS=always PYTHONUNBUFFERED=1 PSUTIL_TESTING=1 PSUTIL_DEBUG=1 python {project}/unitest-restful.py && + # PYTHONWARNINGS=always PYTHONUNBUFFERED=1 PSUTIL_TESTING=1 PSUTIL_DEBUG=1 python {project}/unitest-xmlrpc.py + # CIBW_TEST_EXTRAS: test + # CIBW_SKIP: cp35-* pp* steps: - name: Cancel previous runs @@ -33,6 +30,7 @@ jobs: access_token: ${{ github.token }} - uses: actions/checkout@v2 + - uses: actions/setup-python@v2 with: python-version: 3.9 @@ -40,44 +38,15 @@ jobs: - name: Install cibuildwheel run: pip install cibuildwheel - - name: Run tests - run: cibuildwheel . - - name: Create wheels + run: python -m cibuildwheel --output-dir wheelhouse + + - name: Upload wheels uses: actions/upload-artifact@v2 with: name: wheels path: wheelhouse - freebsd: - runs-on: macos-latest - steps: - - name: Cancel previous runs - uses: styfle/cancel-workflow-action@0.6.0 - with: - access_token: ${{ github.token }} - - - uses: actions/checkout@v2 - - - name: Run tests - id: test - uses: vmactions/freebsd-vm@v0.0.8 - with: - usesh: true - prepare: pkg install -y gcc python3 - run: | - set +e - export \ - PYTHONUNBUFFERED=1 \ - PYTHONWARNINGS=always \ - PSUTIL_TESTING=1 \ - PSUTIL_DEBUG=1 - python3 -m pip install --user setuptools - python3 setup.py install - python3 unitest.py - python3 unitest-restful.py - python3 unitest-xmlrpc.py* - linters: runs-on: ubuntu-latest steps: @@ -85,8 +54,6 @@ jobs: - uses: actions/setup-python@v2 - name: 'Run linters' run: | - python2 -m pip install flake8 python3 -m pip install flake8 - python2 -m flake8 . python3 -m flake8 . - echo "flake8 linting OK" + echo "Flake8 linting OK" |