Skip to content

Commit

Permalink
Feat: Add reports for remote connect tests (#690)
Browse files Browse the repository at this point in the history
Co-authored-by: pyansys-ci-bot <[email protected]>
  • Loading branch information
dipinknair and pyansys-ci-bot authored Apr 11, 2024
1 parent 5144c27 commit 4cabcfe
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 9 deletions.
25 changes: 17 additions & 8 deletions .github/workflows/ci_cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -129,10 +129,10 @@ jobs:
echo "matrix={\"mechanical-version\":['${{ needs.revn-variations.outputs.test_docker_image_version }}'],\"experimental\":[false]}" >> $GITHUB_OUTPUT
fi
tests:
name: Testing and coverage - Mechanical ${{ matrix.mechanical-version }}
remote-connect:
name: Remote connect testing and coverage - Mechanical ${{ matrix.mechanical-version }}
runs-on: public-ubuntu-latest-8-cores
needs: [smoke-tests, revn-variations, config-matrix]
needs: [style, revn-variations, config-matrix]
continue-on-error: ${{ matrix.experimental }}
strategy:
fail-fast: false
Expand All @@ -158,9 +158,18 @@ jobs:
uses: ansys/actions/tests-pytest@v5
with:
python-version: ${{ env.MAIN_PYTHON_VERSION }}
pytest-markers: '-m remote_session_connect'
pytest-extra-args: '-s --junitxml remote_results${{ env.MAIN_PYTHON_VERSION}}.xml'

# - name: Upload coverage to Codecov
# uses: codecov/codecov-action@v3
- name: Publish Test Report
uses: mikepenz/action-junit-report@v4
if: always()
with:
report_paths: '**/remote_results*.xml'
check_name: Remote Connect Test Report ${{ env.MAIN_PYTHON_VERSION}}
detailed_summary: true
include_passed: true
fail_on_failure: true

- name: Upload coverage results
uses: actions/upload-artifact@v4
Expand Down Expand Up @@ -276,7 +285,7 @@ jobs:
container:
image: ${{ needs.revn-variations.outputs.test_container }}
options: --entrypoint /bin/bash
needs: [ smoke-tests, revn-variations]
needs: [ style, revn-variations]
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -446,7 +455,7 @@ jobs:

coverage:
name: Merging coverage
needs: [tests, embedding-tests, launch-tests]
needs: [remote-connect, embedding-tests, launch-tests]
runs-on: ubuntu-latest
steps:
- name: Checkout repository
Expand Down Expand Up @@ -530,7 +539,7 @@ jobs:

package:
name: Package library
needs: [tests, embedding-tests, doc-build]
needs: [smoke-tests, remote-connect, embedding-tests, doc-build]
runs-on: ubuntu-latest
steps:
- name: Build library source and wheel artifacts
Expand Down
1 change: 1 addition & 0 deletions doc/changelog.d/690.added.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Feat: Add reports for remote connect tests
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ output = ".cov/coverage.xml"

[tool.pytest.ini_options]
minversion = "7.1"
addopts = """-ra -s -m remote_session_connect --durations=0 --cov=ansys.mechanical --cov-report html:.cov/html \
addopts = """-ra -s --durations=0 --cov=ansys.mechanical --cov-report html:.cov/html \
--cov-report xml:.cov/xml --cov-report term -vv --print --print-relative-time"""
# addopts = """-ra -s -m remote_session_launch --durations=0 --cov=ansys.mechanical --cov-report html:.cov/html \
# --cov-report xml:.cov/xml --cov-report term -vv --print --print-relative-time"""
Expand Down

0 comments on commit 4cabcfe

Please sign in to comment.