mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Update GitHub Actions workflows
This commit is contained in:
14
.github/workflows/coverage.yml
vendored
14
.github/workflows/coverage.yml
vendored
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user