Use tox GitHub Action
Signed-off-by: Dan Yeaw <dan@yeaw.me>
This commit is contained in:
parent
a9c2ba71c0
commit
7367cb610b
15
.github/workflows/build.yml
vendored
15
.github/workflows/build.yml
vendored
@ -1,8 +1,5 @@
|
|||||||
name: build
|
name: build
|
||||||
|
|
||||||
env:
|
|
||||||
POETRY_VERSION: 1.1.3
|
|
||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
push:
|
push:
|
||||||
@ -34,12 +31,12 @@ jobs:
|
|||||||
uses: actions/setup-python@v2.1.3
|
uses: actions/setup-python@v2.1.3
|
||||||
with:
|
with:
|
||||||
python-version: ${{ matrix.python-version }}
|
python-version: ${{ matrix.python-version }}
|
||||||
- name: Install Poetry
|
- name: Install dependencies
|
||||||
run: pip install poetry==$POETRY_VERSION
|
run: |
|
||||||
- name: Install Python Dependencies
|
python -m pip install --upgrade pip
|
||||||
run: poetry install
|
pip install tox tox-gh-actions
|
||||||
- name: Test with Pytest
|
- name: Test with tox
|
||||||
run: xvfb-run pytest
|
run: tox
|
||||||
- name: Code Climate Coverage Action
|
- name: Code Climate Coverage Action
|
||||||
uses: paambaati/codeclimate-action@v2.7.4
|
uses: paambaati/codeclimate-action@v2.7.4
|
||||||
env:
|
env:
|
||||||
|
@ -50,6 +50,14 @@ legacy_tox_ini = """
|
|||||||
isolated_build = true
|
isolated_build = true
|
||||||
envlist = clean, py37, py38, py39, report
|
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]
|
[testenv]
|
||||||
commands =
|
commands =
|
||||||
pytest --cov --cov-append --cov-report=term-missing {posargs}
|
pytest --cov --cov-append --cov-report=term-missing {posargs}
|
||||||
|
Loading…
Reference in New Issue
Block a user