Test failure #45
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
push: | |
branches: [ '*' ] | |
jobs: | |
run-python-unit-tests: | |
name: Run python unit tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Build and run unit test Dockerfile | |
uses: ./.github/actions/unit-test-action | |
- name: Upload Build Artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: test_results | |
path: ${{ github.workspace }}/test_results | |
- name: Check test results | |
run: | | |
cat test_results/measure_check_output.txt | |
cat test_results/pytest_output.txt | |
if grep -q "FAILURES" test_results/pytest_output.txt; then | |
exit 1 | |
fi | |
- name: Update measure.xmls | |
run: | | |
git config user.name "GitHub Actions Bot" | |
git config user.email "[email protected]" | |
git add **/measure.xml | |
if git diff --cached --quiet; then | |
echo "No changes to measure.xml files. Skipping commit." | |
else | |
git commit -m "Auto-update measure.xml files by GitHub Actions" | |
git push origin HEAD | |
fi |