diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 523b538..c08661e 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -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 @@ -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 diff --git a/tests/test_CLI.py b/tests/test_CLI.py index 944d0b1..7387b0e 100644 --- a/tests/test_CLI.py +++ b/tests/test_CLI.py @@ -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" @@ -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