diff --git a/.github/workflows/ci_cd.yml b/.github/workflows/ci_cd.yml index 6588764cd..8e3df7969 100644 --- a/.github/workflows/ci_cd.yml +++ b/.github/workflows/ci_cd.yml @@ -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 }} @@ -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 @@ -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 @@ -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 diff --git a/pyproject.toml b/pyproject.toml index 30186e91b..97cee9fc3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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"""