Skip to content

Commit

Permalink
client: tox GH action, line lengths
Browse files Browse the repository at this point in the history
  • Loading branch information
tschaume committed Apr 3, 2020
1 parent 2641922 commit 3ccb9ec
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 1 deletion.
24 changes: 24 additions & 0 deletions .github/workflows/mpcontribs-client-tox.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: mpcontribs-client

on: [push]

jobs:
build:
runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
python-version: [3.7, 3.8]

steps:
- uses: actions/checkout@v1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
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
15 changes: 14 additions & 1 deletion mpcontribs-client/tox.ini
Original file line number Diff line number Diff line change
@@ -1,8 +1,21 @@
[tox]
envlist = py37,py38

[gh-actions]
python =
3.7: py37
3.8: py38

[pycodestyle]
max-line-length = 99

[pytest]
flake8-max-line-length = 99

[testenv]
deps =
pytest
pytest-flake8
pytest-pycodestyle
-rrequirements.txt
commands = pytest -s
commands = pytest -s --flake8 --pycodestyle

0 comments on commit 3ccb9ec

Please sign in to comment.