Update GitHub Actions workflows

This commit is contained in:
Adam Turner
2023-02-15 02:10:09 +00:00
parent bb9821b968
commit ff852bc7c3
10 changed files with 200 additions and 142 deletions

View File

@@ -5,6 +5,9 @@ on: [push]
permissions:
contents: read
env:
FORCE_COLOR: "1"
jobs:
coverage:
runs-on: ubuntu-latest
@@ -24,11 +27,16 @@ jobs:
run: sudo apt-get install graphviz
- name: Install dependencies
run: python -m pip install -U pip tox pytest-cov
run: |
python -m pip install --upgrade pip
python -m pip install .[test] pytest-cov
- name: Run Tox
run: tox -e py -- -vv
- name: Test with pytest
run: python -m pytest -vv
env:
PYTHONDEVMODE: "1" # -X dev
PYTHONWARNDEFAULTENCODING: "1" # -X warn_default_encoding
PYTHONWARNINGS: "always" # -W always
PYTEST_ADDOPTS: "--cov ./ --cov-append --cov-config pyproject.toml"
VIRTUALENV_SYSTEM_SITE_PACKAGES: "1"