diff options
Diffstat (limited to '.github/workflows/build.yml')
-rw-r--r-- | .github/workflows/build.yml | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 00000000..1edc760a --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,49 @@ +# Executed on every push by GitHub Actions. +# This runs CI tests + +name: wheels + +on: [push] + +jobs: + 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-devel' + # 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 |