Skip to content

Commit

Permalink
test: fixed path to main and allow pytest to be run manually
Browse files Browse the repository at this point in the history
  • Loading branch information
danellecline committed Feb 22, 2024
1 parent ccb95e3 commit f586fd4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
name: Run pytest

on: [push, pull_request]
oon:
push:
pull_request:

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

jobs:
test:
Expand Down
6 changes: 3 additions & 3 deletions sdcat/tests/test_detect.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def run_detect(data_dir: Path, scale: int) -> int:
with tempfile.TemporaryDirectory() as tmp_dir:
# Run sdcat
proc = subprocess.Popen(['python3',
f'{root_dir}/sdcat/__main__.py',
f'{root_dir}/__main__.py',
'detect',
'--skip-sahi',
'--scale-percent', str(scale),
Expand Down Expand Up @@ -76,7 +76,7 @@ def test_plankton():


if __name__ == '__main__':
# test_bird()
# test_pinniped()
test_bird()
test_pinniped()
test_plankton()
print('All tests passed')

0 comments on commit f586fd4

Please sign in to comment.