Skip to content

Commit

Permalink
update test to remote connect
Browse files Browse the repository at this point in the history
  • Loading branch information
dipinknair committed Apr 8, 2024
1 parent f9a24b1 commit 21789e3
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 7 deletions.
21 changes: 15 additions & 6 deletions .github/workflows/ci_cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,8 @@ 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]
continue-on-error: ${{ matrix.experimental }}
Expand Down Expand Up @@ -158,9 +158,18 @@ jobs:
uses: ansys/actions/tests-pytest@v5
with:
python-version: ${{ env.MAIN_PYTHON_VERSION }}
pytest-markers: '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 @@ -443,7 +452,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 @@ -520,7 +529,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
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 21789e3

Please sign in to comment.