Skip to content

Commit

Permalink
Add test results print to mac run
Browse files Browse the repository at this point in the history
  • Loading branch information
ToveRumar committed Aug 6, 2024
1 parent f386d10 commit b478753
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion .github/workflows/crazylab-mac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ jobs:
python_version: ["3.8","3.9", "3.10", "3.11"]
fail-fast: false
env:
TEST_FILE: Sanity_test_job-${{github.run_number}}
CRAZY_SITE: crazylab-mac
PYTHON_VERSION: ${{ matrix.python_version }}
timeout-minutes: 120
Expand All @@ -40,6 +41,25 @@ jobs:
run: |
venv/bin/pip install -r requirements.txt
- name: Run test suite
run: venv/bin/python -m pytest --verbose -m sanity tests/QA
run: venv/bin/python -m pytest --verbose --html=${{env.TEST_FILE}}_sanity_${{ matrix.python_version }}.html --junit-xml ${{env.TEST_FILE}}_sanity_${{ matrix.python_version }}.xml -m sanity tests/QA

- name: Upload test file
if: always()
uses: actions/upload-artifact@v4
with:
if-no-files-found: warn
name: test_report_${{github.run_number}}sanity_${{ matrix.python_version }}
path: |
${{env.TEST_FILE}}_sanity_${{ matrix.python_version }}.html
${{env.TEST_FILE}}_sanity_${{ matrix.python_version }}.xml
assets/style.css
- name: Pretty print test results
if: always()
uses: pmeier/pytest-results-action@main
with:
path: ${{env.TEST_FILE}}_sanity_${{ matrix.python_version }}.xml
summary: true
title: Test results


0 comments on commit b478753

Please sign in to comment.