Skip to content

Commit 61d2540

Browse files
committed
Update tests
1 parent dec1c8e commit 61d2540

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

.github/workflows/tests.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ jobs:
1212
run-tests:
1313
strategy:
1414
matrix:
15-
python-version: ["3.10"]
16-
os: [ ubuntu-latest ]
15+
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
16+
os: [ ubuntu-latest, windows-latest, macOS-latest ]
1717
runs-on: ${{matrix.os}}
1818
steps:
1919
- uses: actions/checkout@v4
@@ -32,7 +32,7 @@ jobs:
3232
attempt_limit: 10
3333
attempt_delay: 10000
3434
- name: Run tests on package
35-
run: pytest --cov-branch --cov-report=term-missing --cov=academic_tracker -rP tests/
35+
run: pytest --cov-branch --cov-report=term-missing --cov=academic_tracker tests/
3636
# - name: Debug with tmate on failure
3737
# if: ${{ failure() }}
3838
# uses: mxschmitt/action-tmate@v3

tests/test_CLI.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,6 @@ def test_pmid_reference_hyphen_ref_search():
183183

184184
def test_pmid_reference_underscore_ref_search():
185185
"""Test that the underscore version of the PMID_reference option works for reference_search."""
186-
print([name for name in os.listdir(".") if os.path.isdir(name) and re.match(r"tracker-.*", name)])
187186

188187
test_file = "config_truncated.json"
189188

@@ -192,8 +191,6 @@ def test_pmid_reference_underscore_ref_search():
192191
subp = subprocess.run(command, capture_output=True, encoding="UTF-8")
193192
output = subp.stdout
194193

195-
print(output)
196-
197194
assert [name for name in os.listdir(".") if os.path.isdir(name) and re.match(r"tracker-.*", name)]
198195

199196
assert "Success" in output

0 commit comments

Comments
 (0)