Skip to content

Commit

Permalink
Enable pytest color output (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonashaag authored Aug 17, 2023
1 parent 266067b commit f88a72d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,17 @@ jobs:
- name: Fetch full git history
run: git fetch --prune --unshallow
- name: Set up Micromamba env
uses: mamba-org/setup-micromamba@875557da4ee020f18df03b8910a42203fbf02da1
uses: mamba-org/setup-micromamba@25949dd7cbed1382ed14df19c63f04c72c72cd67
with:
environment-file: environment.yml
create-args: >-
python=${{ matrix.python-version }}
- name: Run tests
run: |
pip install -e .
pytest -v tests/
pytest-emoji
pytest-md
- name: pip install
run: pip install -e .
- name: Run pytest
uses: pavelzw/pytest-action@v2

pre-commit-checks:
name: pre-commit checks
Expand All @@ -52,3 +54,5 @@ jobs:
python-version: "3.10"
- name: Run pre-commit checks
uses: pre-commit/[email protected]
env:
PRE_COMMIT_USE_MICROMAMBA: 1
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,4 @@ allow_redefinition = true

[tool.pytest.ini_options]
# This will be pytest's future default.
addopts = "--import-mode=importlib"
addopts = "--import-mode=importlib --color=yes"

0 comments on commit f88a72d

Please sign in to comment.