File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed
Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -138,8 +138,8 @@ jobs:
138138 echo "shared coverage - Current directory: $(pwd)"
139139 poetry env use 3.11
140140 poetry install
141- poetry run coverage run -m unittest discover || echo "shared tests failed" >> ../failed_tests.txt
142- poetry run coverage xml -o ../shared-coverage.xml
141+ poetry run coverage run -m unittest discover || echo "shared tests failed" >> ../../ failed_tests.txt
142+ poetry run coverage xml -o ../../ shared-coverage.xml
143143
144144 - name : Run unittest with id_sync
145145 working-directory : lambdas/id_sync
@@ -151,12 +151,18 @@ jobs:
151151 echo "id_sync coverage - Current directory: $(pwd)"
152152 poetry env use 3.11
153153 poetry install
154- poetry run coverage run -m unittest discover || echo "id_sync tests failed" >> ../failed_tests.txt
155- poetry run coverage xml -o ../id_sync-coverage.xml
154+ poetry run coverage run -m unittest discover || echo "id_sync tests failed" >> ../../failed_tests.txt
155+ poetry run coverage xml -o ../../id_sync-coverage.xml
156+ #check files created
157+ if [ ! -f ../../id_sync-coverage.xml ]; then
158+ echo "id_sync-coverage.xml not found, exiting with error"
159+ fi
156160
157161 - name : Run Test Failure Summary
158162 id : check_failure
159163 run : |
164+ echo "Checking for test failures..."
165+ ls *-coverage.xml
160166 if [ -s failed_tests.txt ]; then
161167 echo "The following tests failed:"
162168 cat failed_tests.txt
You can’t perform that action at this time.
0 commit comments