Skip to content

Commit

Permalink
Use pytest-replay.
Browse files Browse the repository at this point in the history
  • Loading branch information
KelSolaar committed Dec 1, 2023
1 parent 10193cc commit 5d9f9bf
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
14 changes: 13 additions & 1 deletion .github/workflows/continuous-integration-quality-unit-tests.yml
Expand Up @@ -71,11 +71,23 @@ jobs:
poetry run python -OO -c "import $CI_PACKAGE"
shell: bash
- name: Test with Pytest
continue-on-error: true
run: |
poetry run python -W ignore -m pytest --doctest-modules --ignore=$CI_PACKAGE/examples --cov=$CI_PACKAGE $CI_PACKAGE
poetry run python -W ignore -m pytest --doctest-modules --ignore=$CI_PACKAGE/examples --cov=$CI_PACKAGE $CI_PACKAGE --replay-record-dir=replay
shell: bash
- name: ls
continue-on-error: true
run: |
echo "ls -l" && ls -l
echo "ls -l replay" && ls -l replay
shell: bash
- name: Upload Coverage to coveralls.io
if: matrix.os == 'macOS-latest' && matrix.python-version == '3.11'
run: |
if [ -z "$COVERALLS_REPO_TOKEN" ]; then echo \"COVERALLS_REPO_TOKEN\" secret is undefined!; else poetry run coveralls; fi
shell: bash
- uses: actions/upload-artifact@v3
with:
name: pytest-replay-${{ matrix.os }}-${{ matrix.python-version }}
path: |
replay
3 changes: 2 additions & 1 deletion pyproject.toml
Expand Up @@ -73,7 +73,8 @@ pre-commit = ">= 3.5"
pyright = "*"
pytest = "*"
pytest-cov = "*"
pytest-xdist = {git = "https://github.com/colour-science/pytest-xdist.git"}
pytest-replay = "*"
pytest-xdist = "*"
toml = "*"
twine = "*"

Expand Down

0 comments on commit 5d9f9bf

Please sign in to comment.