update python-package.yml
This commit is contained in:
parent
52ac73bf57
commit
f9635eee56
1 changed files with 26 additions and 11 deletions
27
.github/workflows/python-package.yml
vendored
27
.github/workflows/python-package.yml
vendored
|
@ -1,4 +1,4 @@
|
||||||
name: Python package
|
name: CI
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
|
@ -7,13 +7,11 @@ on:
|
||||||
branches: [ master ]
|
branches: [ master ]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
code-quality:
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
python-version: [3.6, 3.7, 3.8]
|
python-version: [3.8]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Set up Python ${{ matrix.python-version }}
|
- name: Set up Python ${{ matrix.python-version }}
|
||||||
|
@ -23,7 +21,7 @@ jobs:
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
pip install mypy lxml coverage flake8
|
pip install mypy lxml flake8
|
||||||
pip install -e .
|
pip install -e .
|
||||||
- name: Lint with flake8
|
- name: Lint with flake8
|
||||||
run: |
|
run: |
|
||||||
|
@ -32,6 +30,23 @@ jobs:
|
||||||
- name: mypy
|
- name: mypy
|
||||||
run: |
|
run: |
|
||||||
mypy aioupnp
|
mypy aioupnp
|
||||||
|
|
||||||
|
tests:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
python-version: [3.6, 3.7, 3.8]
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: Set up Python ${{ matrix.python-version }}
|
||||||
|
uses: actions/setup-python@v2
|
||||||
|
with:
|
||||||
|
python-version: ${{ matrix.python-version }}
|
||||||
|
- name: Install dependencies
|
||||||
|
run: |
|
||||||
|
python -m pip install --upgrade pip
|
||||||
|
pip install coverage
|
||||||
|
pip install -e .
|
||||||
- name: Test with coverage
|
- name: Test with coverage
|
||||||
run: |
|
run: |
|
||||||
coverage run -m unittest discover -v tests
|
coverage run -m unittest discover -v tests
|
||||||
|
|
Loading…
Reference in a new issue