mirror of https://github.com/aristocratos/bpytop
Switched testing from Travis CI to Github workflows
parent
0594df7d7c
commit
7d35bd6a9a
|
@ -0,0 +1,24 @@
|
|||
name: Testing
|
||||
|
||||
on: [pull_request, push]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
max-parallel: 3
|
||||
matrix:
|
||||
python-version: [3.7, 3.8, 3.9]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- 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 tox tox-gh-actions
|
||||
- name: Test with tox
|
||||
run: tox
|
13
tox.ini
13
tox.ini
|
@ -1,6 +1,11 @@
|
|||
[tox]
|
||||
isolated_build = true
|
||||
envlist = py36,py37,py38,mypy,pylint
|
||||
envlist = py37,py38,py39,mypy,pylint
|
||||
|
||||
[gh-actions]
|
||||
python =
|
||||
3.7: py37
|
||||
3.8: py38
|
||||
3.9: py39, mypy, pylint
|
||||
|
||||
[testenv]
|
||||
whitelist_externals = poetry
|
||||
|
@ -9,13 +14,13 @@ commands =
|
|||
poetry run pytest
|
||||
|
||||
[testenv:mypy]
|
||||
basepython = python3.8
|
||||
basepython = python3.9
|
||||
commands =
|
||||
poetry install -v
|
||||
poetry run mypy .
|
||||
|
||||
[testenv:pylint]
|
||||
basepython = python3.8
|
||||
basepython = python3.9
|
||||
commands =
|
||||
poetry install -v
|
||||
poetry run pylint -E bpytop
|
||||
|
|
Loading…
Reference in New Issue