Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ptth222 committed Sep 4, 2024
1 parent dec1c8e commit 61d2540
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ jobs:
run-tests:
strategy:
matrix:
python-version: ["3.10"]
os: [ ubuntu-latest ]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
os: [ ubuntu-latest, windows-latest, macOS-latest ]
runs-on: ${{matrix.os}}
steps:
- uses: actions/checkout@v4
Expand All @@ -32,7 +32,7 @@ jobs:
attempt_limit: 10
attempt_delay: 10000
- name: Run tests on package
run: pytest --cov-branch --cov-report=term-missing --cov=academic_tracker -rP tests/
run: pytest --cov-branch --cov-report=term-missing --cov=academic_tracker tests/
# - name: Debug with tmate on failure
# if: ${{ failure() }}
# uses: mxschmitt/action-tmate@v3
Expand Down
3 changes: 0 additions & 3 deletions tests/test_CLI.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,6 @@ def test_pmid_reference_hyphen_ref_search():

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

test_file = "config_truncated.json"

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

print(output)

assert [name for name in os.listdir(".") if os.path.isdir(name) and re.match(r"tracker-.*", name)]

assert "Success" in output
Expand Down

0 comments on commit 61d2540

Please sign in to comment.