Skip to content

Commit

Permalink
ci: colorize tox (#145)
Browse files Browse the repository at this point in the history
Signed-off-by: Callahan Kovacs <callahankovacs@gmail.com>
  • Loading branch information
mr-cal authored Nov 5, 2023
1 parent 6b79ebe commit eae2528
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ jobs:
- name: Install Tox
run: pip install tox
- name: Lint documentation
run: tox run -e lint-docs
run: tox run --colored yes -e lint-docs
- name: Build documentation
run: tox run -e build-docs
run: tox run --colored yes -e build-docs
- name: Upload documentation
uses: actions/upload-artifact@v3
with:
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,13 @@ jobs:
python -m pip install tox
echo "::endgroup::"
echo "::group::Create virtual environments for linting processes."
tox run -m lint --notest
tox run --colored yes -m lint --notest
echo "::endgroup::"
echo "::group::Wait for snap to complete"
snap watch --last=install
echo "::endgroup::"
- name: Run Linters
run: tox run --skip-pkg-install --no-list-dependencies -m lint
run: tox run --skip-pkg-install --no-list-dependencies --colored yes -m lint
unit:
strategy:
matrix:
Expand All @@ -67,9 +67,9 @@ jobs:
echo "::endgroup::"
mkdir -p results
- name: Setup Tox environments
run: tox run -m tests --notest
run: tox run --colored yes -m tests --notest
- name: Test with tox
run: tox run --skip-pkg-install --no-list-dependencies --result-json results/tox-${{ matrix.platform }}.json -m unit-tests
run: tox run --skip-pkg-install --no-list-dependencies --result-json results/tox-${{ matrix.platform }}.json --colored yes -m unit-tests
env:
PYTEST_ADDOPTS: "--no-header -vv -rN"
- name: Upload code coverage
Expand Down Expand Up @@ -108,9 +108,9 @@ jobs:
echo "::endgroup::"
mkdir -p results
- name: Setup Tox environments
run: tox run -m tests --notest
run: tox run --colored yes -m tests --notest
- name: Test with tox
run: tox run --skip-pkg-install --no-list-dependencies --result-json results/tox-${{ matrix.platform }}.json -m integration-tests
run: tox run --skip-pkg-install --no-list-dependencies --result-json results/tox-${{ matrix.platform }}.json --colored yes -m integration-tests
env:
PYTEST_ADDOPTS: "--no-header -vv -rN"
- name: Upload test results
Expand Down

0 comments on commit eae2528

Please sign in to comment.