Skip to content

Commit

Permalink
Handle optional test paths for pytest
Browse files Browse the repository at this point in the history
  • Loading branch information
liamtoozer committed Nov 15, 2023
1 parent 8abfd6c commit bf15c83
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/mutmut.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,12 @@ jobs:
run: ln -sf .development.env .env
- name: Run mutmut
run: |
# If an integration test path also exists, include it in the mutation tests
packages_to_run_with_pytest=tests/app/${{ matrix.mutation-package-under-test }}
# hacky way to handle unit and integration paths for the package under test for now
packages_to_run_with_pytest=""
if [ -d tests/app/${{ matrix.mutation-package-under-test }} ]; then
packages_to_run_with_pytest="tests/app/${{ matrix.mutation-package-under-test }}"
fi
if [ -d tests/integration/${{ matrix.mutation-package-under-test }} ]; then
packages_to_run_with_pytest="${packages_to_run_with_pytest} tests/integration/${{ matrix.mutation-package-under-test }}"
fi
Expand Down

0 comments on commit bf15c83

Please sign in to comment.