Skip to content

Commit

Permalink
fix: update CI workflow to improve test summary output and formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
germa89 committed Feb 20, 2025
1 parent a774cfd commit c2140f3
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1247,7 +1247,7 @@ jobs:
pytest-summary:
name: Pytest summary for all the test jobs
needs: [build-test-remote] # build-test-ubuntu-local, build-test-ubuntu-minimal, build-test-ubuntu-console
needs: [build-test-remote] #, build-test-ubuntu-local, build-test-ubuntu-minimal, build-test-ubuntu-console]
if: always()
runs-on: ubuntu-22.04
steps:
Expand All @@ -1259,29 +1259,34 @@ jobs:
with:
cache: 'pip'
python-version: ${{ env.MAIN_PYTHON_VERSION }}

- name: "Install numpy"
run: python -m pip install numpy click

- name: "Download artifacts"
uses: actions/download-artifact@v4
with:
path: "artifacts"

- run: |
ls -Rla artifacts
- name: "List directories"
run: |
echo "::group:: List directories:" && ls -Rla artifacts && echo "::endgroup::"
- name: "Uncompress files"
run: |
find . -mindepth 1 -maxdepth 4 -type f -name 'logs-*.tgz' -exec tar -xzvf {} -C $(dirname {}) \;
- name: "List directories"
run: |
ls -Rla .
echo "::group:: List directories:" && ls -Rla . && echo "::endgroup::"
- name: "Run script"
- name: "Create summary"
run: |
python .ci/pytest_summary.py --num 25 --save-file tests_durations.json
echo "# Test summary 🚀" >> $GITHUB_STEP_SUMMARY
echo "The followin tables show a summary of tests duration and standard desviation for all the jobs." >> $GITHUB_STEP_SUMMARY
echo "```" >> $GITHUB_STEP_SUMMARY
python .ci/pytest_summary.py --num 25 --save-file tests_durations.json >> $GITHUB_STEP_SUMMARY
echo "```" >> $GITHUB_STEP_SUMMARY
- name: "Upload tests summary"
uses: actions/upload-artifact@v4
Expand Down

0 comments on commit c2140f3

Please sign in to comment.