File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -130,16 +130,9 @@ jobs:
130130 run : |
131131 mv .github/.coveragerc .
132132
133- - name : remove slashes from test name
134- run : |
135- test=$(echo ${{ matrix.test }} | sed 's/\//__/g')
136- echo "test=${test}" >> $GITHUB_ENV
137-
138133 - name : Test with pytest
139134 run : |
140- python3 -m pytest tests/${{matrix.test}} --color=yes --cov --cov-data-file=.coverage.${{ env.test }} --durations=0 && exit_code=0|| exit_code=$?
141- echo "Current directory contents:"
142- ls -la
135+ python3 -m pytest tests/${{matrix.test}} --color=yes --cov --durations=0 && exit_code=0|| exit_code=$?
143136 # don't fail if no tests were collected, e.g. for test_licence.py
144137 if [ "${exit_code}" -eq 5 ]; then
145138 echo "No tests were collected"
@@ -149,18 +142,25 @@ jobs:
149142 exit 1
150143 fi
151144
145+ - name : remove slashes from test name
146+ run : |
147+ test=$(echo ${{ matrix.test }} | sed 's/\//__/g')
148+ echo "test=${test}" >> $GITHUB_ENV
149+
152150 - name : Store snapshot report
153151 uses : actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4
154152 if : always()
155153 with :
154+ include-hidden-files : true
156155 name : Snapshot Report ${{ env.test }}
157156 path : ./snapshot_report.html
158157
159158 - name : Upload coverage
160159 uses : actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4
161160 with :
161+ include-hidden-files : true
162162 name : coverage_${{ env.test }}
163- path : .coverage.${{ env.test }}
163+ path : .coverage
164164
165165 coverage :
166166 needs : test
You can’t perform that action at this time.
0 commit comments