Skip to content

Commit

Permalink
pytest discovery will autofind tests/test_*.py files
Browse files Browse the repository at this point in the history
  • Loading branch information
cclauss authored Mar 26, 2024
1 parent 92a27c0 commit 70d6193
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/unittests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@ on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]

steps:
- uses: actions/checkout@v4
Expand All @@ -30,13 +31,15 @@ jobs:
pip install pytest
# pytest discovery will autofind tests/test_*.py files...
# https://docs.pytest.org/en/stable/explanation/goodpractices.html#conventions-for-python-test-discovery
cd tests
mv csv_id_to_node_id_map_tests.py test_csv_id_to_node_id_map.py
mv field_tests.py test_fields.py
mv field_tests.py test_fields.py
mv field_tests_values.py test_field_values.py
mv islandora_tests.py test_islandora.py
mv islandora_tests_check.py test_islandora_check.py
mv islandora_tests_hooks.py test_islandora_hooks.py
mv islandora_tests_paged_content.py test_islandora_paged_content.py
mv unit_tests.py test_unit.py
mv unit_tests_workbench_config.py test_unit_workbench_config.py
cd ..
pytest tests

0 comments on commit 70d6193

Please sign in to comment.