summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornicolargo <nicolas@nicolargo.com>2021-04-20 09:52:23 +0200
committernicolargo <nicolas@nicolargo.com>2021-04-20 09:52:23 +0200
commitaea69c52db7fec0c65231364414b8a31824daa7e (patch)
treefbc2371ff70436cf88954194fdc8b3d4405f484b
parentd52d926aedd74d384816b91d185c5cc7db661088 (diff)
Correct an issue with build wheels pipeline
-rw-r--r--.github/workflows/build.yml77
1 files changed, 39 insertions, 38 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 70fb7d34..6672973b 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -6,43 +6,44 @@ name: wheels
on: [push]
jobs:
- deploy:
+ build:
runs-on: ubuntu-latest
- steps:
- - name: Cancel previous runs
- uses: styfle/cancel-workflow-action@0.6.0
- with:
- access_token: ${{ github.token }}
-
- - uses: actions/checkout@v2
-
- - uses: actions/setup-python@v2
- with:
- python-version: 3.9
-
- - name: Install dependencies
- run: |
- python -m pip install --upgrade pip
- pip install flake8
- if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
-
- - name: Lint with flake8
- run: |
- # Stop the build if there are Python syntax errors or undefined names
- flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics --exclude=.git,./glances/outputs/static
-
- - name: Build manylinux Python wheels
- uses: RalfG/python-wheels-manylinux-build@v0.3.3-manylinux2010_x86_64
- with:
- python-versions: 'cp36-cp36m cp37-cp37m'
- # build-requirements: 'cython'
- system-packages: 'python-dev'
- # pre-build-command: 'sh pre-build-script.sh'
- pip-wheel-args: '-w ./dist --no-deps'
-
- - name: Upload wheels
- uses: actions/upload-artifact@v2
- with:
- name: wheels
- path: dist
+ steps:
+
+ - name: Cancel previous runs
+ uses: styfle/cancel-workflow-action@0.6.0
+ with:
+ access_token: ${{ github.token }}
+
+ - uses: actions/checkout@v2
+
+ - uses: actions/setup-python@v2
+ with:
+ python-version: 3.9
+
+ - name: Install dependencies
+ run: |
+ python -m pip install --upgrade pip
+ pip install flake8
+ if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
+
+ - name: Lint with flake8
+ run: |
+ # Stop the build if there are Python syntax errors or undefined names
+ flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics --exclude=.git,./glances/outputs/static
+
+ - name: Build manylinux Python wheels
+ uses: RalfG/python-wheels-manylinux-build@v0.3.3-manylinux2010_x86_64
+ with:
+ python-versions: 'cp36-cp36m cp37-cp37m'
+ # build-requirements: 'cython'
+ system-packages: 'python-dev'
+ # pre-build-command: 'sh pre-build-script.sh'
+ pip-wheel-args: '-w ./dist --no-deps'
+
+ - name: Upload wheels
+ uses: actions/upload-artifact@v2
+ with:
+ name: wheels
+ path: dist