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
|
||||
|
||||
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:
|
||||
|
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user