Use tox GitHub Action

Signed-off-by: Dan Yeaw <dan@yeaw.me>
This commit is contained in:
Dan Yeaw 2020-10-24 14:52:07 -04:00
parent a9c2ba71c0
commit 7367cb610b
No known key found for this signature in database
GPG Key ID: 77A923EF537B61A4
2 changed files with 14 additions and 9 deletions

View File

@ -1,8 +1,5 @@
name: build
env:
POETRY_VERSION: 1.1.3
on:
pull_request:
push:
@ -34,12 +31,12 @@ jobs:
uses: actions/setup-python@v2.1.3
with:
python-version: ${{ matrix.python-version }}
- name: Install Poetry
run: pip install poetry==$POETRY_VERSION
- name: Install Python Dependencies
run: poetry install
- name: Test with Pytest
run: xvfb-run pytest
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install tox tox-gh-actions
- name: Test with tox
run: tox
- name: Code Climate Coverage Action
uses: paambaati/codeclimate-action@v2.7.4
env:

View File

@ -50,6 +50,14 @@ legacy_tox_ini = """
isolated_build = true
envlist = clean, py37, py38, py39, report
[gh-actions]
python =
2.7: py27
3.6: py36
3.7: py37
3.8: py38, mypy
3.9: py39
[testenv]
commands =
pytest --cov --cov-append --cov-report=term-missing {posargs}