mirror of
https://github.com/nicolargo/glances.git
synced 2024-12-22 00:31:37 +03:00
50 lines
1.3 KiB
YAML
50 lines
1.3 KiB
YAML
|
# 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
|