Skip to content

Commit

Permalink
capture and print test_scripts output for debugging CI-testing #2
Browse files Browse the repository at this point in the history
  • Loading branch information
gph82 committed Jan 3, 2025
1 parent a2f2b10 commit dc8f335
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/python-package.macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ jobs:
if: ${{ matrix.python-version != '3.7' }}
run: |
echo -e '[run]\nomit = *dihedrals.py,*contact_matrix.py' > .coveragerc
pytest -k Test_ExamplesCLTs -n 8 -vs --cov=./ --cov-report=xml --disable-warnings --cov-config=.coveragerc
pytest -k test_mdc_neighborhood -n 8 -vs --cov=./ --cov-report=xml --disable-warnings --cov-config=.coveragerc
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
Expand Down
2 changes: 1 addition & 1 deletion tests/test_scripts.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def test_mdc_neighborhood(self):
)
print([iCP.stdout.decode().splitlines() for iCP in CP])
print([iCP.stderr.decode().splitlines() for iCP in CP])
assert _np.unique([iCP.returncode for iCP in CP]) == 0
assert _np.unique([iCP.returncode for iCP in CP]) == 0, ([iCP.stdout.decode().splitlines() for iCP in CP]+[iCP.stderr.decode().splitlines() for iCP in CP])

def test_mdc_interface(self):
with remember_cwd():
Expand Down

0 comments on commit dc8f335

Please sign in to comment.