Skip to content

Commit

Permalink
Activate color output on GHA, re-add Pytest config for 2.7
Browse files Browse the repository at this point in the history
  • Loading branch information
bittner committed Mar 25, 2022
1 parent 6ea96f2 commit 6bc445a
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 4 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ on:
branches:
- main

env:
PY_COLORS: "1"

jobs:
check:
runs-on: ubuntu-latest
Expand All @@ -24,7 +27,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.8'
python-version: '3.9'
- name: Install build tools
run: |
python -m pip install --upgrade pip
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,21 @@
name: Publish Python package
name: Publish

on:
push:
tags:
- "*"

env:
PY_COLORS: "1"

jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.8'
python-version: '3.9'
- name: Install build tools
run: |
python -m pip install --upgrade pip
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ on:
branches:
- main

env:
PY_COLORS: "1"

jobs:
test:
runs-on: ${{ matrix.platform }}
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ ignore = ["py2clean.py","py3clean.py","pypyclean.py"]
output-format = "colorized"

[tool.pytest.ini_options]
addopts = "--doctest-modules --ignore=pyclean/py2clean.py --ignore=pyclean/py3clean.py --ignore=pyclean/pypyclean.py --junitxml=tests/unittests-report.xml --color=yes --verbose"
addopts = "--color=yes --doctest-modules --ignore=pyclean/py2clean.py --ignore=pyclean/py3clean.py --ignore=pyclean/pypyclean.py --junitxml=tests/unittests-report.xml --verbose"
10 changes: 10 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -96,3 +96,13 @@ exclude = .tox,build,dist,pyclean.egg-info
per-file-ignores =
pyclean/py2clean.py:E402
pyclean/py3clean.py:E402

[pytest]
addopts =
--color=yes
--doctest-modules
--ignore=pyclean/py2clean.py
--ignore=pyclean/py3clean.py
--ignore=pyclean/pypyclean.py
--junitxml=tests/unittests-report.xml
--verbose

0 comments on commit 6bc445a

Please sign in to comment.