Skip to content

Commit

Permalink
Added tmate action to debug on GitHub actions
Browse files Browse the repository at this point in the history
  • Loading branch information
IgorTatarnikov committed Oct 30, 2023
1 parent 8866e3a commit c1724de
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/test_and_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ jobs:
run: brew install hdf5

# Run tests
- uses: actions/checkout@v3
- name: Setup tmate session
uses: mxschmitt/action-tmate@v3
- uses: neuroinformatics-unit/actions/test@v2
with:
python-version: ${{ matrix.python-version }}
Expand Down
7 changes: 4 additions & 3 deletions tests/test_scene.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,11 @@ def test_scene_slice():
@pytest.mark.parametrize(
"name, scale", [("test", 2), (None, None), (None, 1), ("test2", None)]
)
def test_scene_screenshot(name, scale):
s = Scene(screenshots_folder="tests/screenshots")
def test_scene_screenshot(name, scale, tmp_path):
d = tmp_path / "screenshots"
d.mkdir()
s = Scene(screenshots_folder=d)
s.screenshot(name=name, scale=scale)
shutil.rmtree("tests/screenshots")
del s


Expand Down

0 comments on commit c1724de

Please sign in to comment.