-
Notifications
You must be signed in to change notification settings - Fork 23
Remove "if: always()" from tests.yml and bump all pydpf-actions to v2.3 #1685
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 6 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
b747a4d
Remove "if: always()" from tests.yml and bump all pydpf-actions to v2.3
PProfizi 1752385
Remove "if: always()" from tests.yml and bump all pydpf-actions to v2…
PProfizi a33f4d0
Fix artifact upload concurrency
PProfizi 60dc7ef
Fix artifact upload concurrency
PProfizi ea984f3
Fix artifact upload concurrency
PProfizi a79bae8
Fix artifact upload concurrency
PProfizi 9e12318
Update .github/workflows/tests.yml
PProfizi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -139,8 +139,8 @@ jobs: | |
| echo "wheel_name=${name[0]}" >> $GITHUB_OUTPUT | ||
|
|
||
| - name: "Upload wheel to artifacts" | ||
| if: inputs.wheel == 'true' | ||
| uses: actions/upload-artifact@v3 | ||
| if: (inputs.wheel == 'true') && !(inputs.test_any && (matrix.os == 'ubuntu-latest') ) | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: ${{ steps.wheel.outputs.wheel_name }} | ||
| path: dist/${{ steps.wheel.outputs.wheel_name }} | ||
|
|
@@ -167,7 +167,7 @@ jobs: | |
|
|
||
| - name: "Upload wheelhouse to artifacts" | ||
| if: inputs.wheelhouse == 'true' | ||
| uses: actions/upload-artifact@v3.1.2 | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: ${{ steps.wheelhouse.outputs.name }} | ||
| path: ${{ steps.wheelhouse.outputs.name }} | ||
|
|
@@ -204,7 +204,7 @@ jobs: | |
| run: pip list | ||
|
|
||
| - name: "Test Docstrings" | ||
| if: inputs.DOCSTRING == 'true' | ||
| if: (inputs.DOCSTRING == 'true') && !((inputs.test_any == 'true') && (matrix.os == 'ubuntu-latest')) | ||
| uses: ansys/pydpf-actions/[email protected] | ||
| with: | ||
| MODULE: ${{env.MODULE}} | ||
|
|
@@ -215,7 +215,6 @@ jobs: | |
| shell: pwsh | ||
| run: | | ||
| .github\workflows\scripts\separate_long_core_tests.ps1 | ||
| if: always() | ||
|
|
||
| - name: "Set pytest arguments" | ||
| shell: bash | ||
|
|
@@ -228,11 +227,9 @@ jobs: | |
| working-directory: tests | ||
| run: | | ||
| pytest $DEBUG $COVERAGE $RERUNS --junitxml=junit/test-results.xml . | ||
| if: always() | ||
|
|
||
| - name: "Kill all servers" | ||
| uses: ansys/pydpf-actions/[email protected] | ||
| if: always() | ||
|
|
||
| - name: "Test API test_launcher" | ||
| uses: nick-fields/retry@v2 | ||
|
|
@@ -245,7 +242,6 @@ jobs: | |
|
|
||
| - name: "Kill all servers" | ||
| uses: ansys/pydpf-actions/[email protected] | ||
| if: always() | ||
|
|
||
| - name: "Test API test_server" | ||
| uses: nick-fields/retry@v2 | ||
|
|
@@ -255,11 +251,9 @@ jobs: | |
| shell: bash | ||
| command: | | ||
| pytest $DEBUG $COVERAGE $RERUNS --junitxml=../tests/junit/test-results3.xml test_server/. | ||
| if: always() | ||
|
|
||
| - name: "Kill all servers" | ||
| uses: ansys/pydpf-actions/[email protected] | ||
| if: always() | ||
|
|
||
| - name: "Test API test_local_server" | ||
| uses: nick-fields/retry@v2 | ||
|
|
@@ -272,7 +266,6 @@ jobs: | |
|
|
||
| - name: "Kill all servers" | ||
| uses: ansys/pydpf-actions/[email protected] | ||
| if: always() | ||
|
|
||
| - name: "Test API test_multi_server" | ||
| uses: nick-fields/retry@v2 | ||
|
|
@@ -285,7 +278,6 @@ jobs: | |
|
|
||
| - name: "Kill all servers" | ||
| uses: ansys/pydpf-actions/[email protected] | ||
| if: always() | ||
|
|
||
| - name: "Test API test_remote_workflow" | ||
| uses: nick-fields/retry@v2 | ||
|
|
@@ -298,7 +290,6 @@ jobs: | |
|
|
||
| - name: "Kill all servers" | ||
| uses: ansys/pydpf-actions/[email protected] | ||
| if: always() | ||
|
|
||
| - name: "Test API test_remote_operator" | ||
| shell: bash | ||
|
|
@@ -308,7 +299,6 @@ jobs: | |
|
|
||
| - name: "Kill all servers" | ||
| uses: ansys/pydpf-actions/[email protected] | ||
| if: always() | ||
|
|
||
| - name: "Test API test_workflow" | ||
| uses: nick-fields/retry@v2 | ||
|
|
@@ -319,11 +309,9 @@ jobs: | |
| shell: bash | ||
| command: | | ||
| pytest $DEBUG $COVERAGE $RERUNS --junitxml=../tests/junit/test-results8.xml test_workflow/. | ||
| if: always() | ||
|
|
||
| - name: "Kill all servers" | ||
| uses: ansys/pydpf-actions/[email protected] | ||
| if: always() | ||
|
|
||
| - name: "Test API test_service" | ||
| uses: nick-fields/retry@v2 | ||
|
|
@@ -335,21 +323,18 @@ jobs: | |
| pytest $DEBUG $COVERAGE $RERUNS --junitxml=tests/junit/test-results9.xml test_service/. | ||
|
|
||
| - name: "Kill all servers" | ||
| uses: ansys/pydpf-actions/[email protected] | ||
| if: always() | ||
| uses: ansys/pydpf-actions/[email protected] | ||
|
|
||
| - name: "Test API Entry" | ||
| shell: bash | ||
| working-directory: tests | ||
| run: | | ||
| cd entry | ||
| pytest $DEBUG $COVERAGE $RERUNS --junitxml=../junit/test-results10.xml . | ||
| if: always() | ||
| timeout-minutes: 30 | ||
|
|
||
| - name: "Kill all servers" | ||
| uses: ansys/pydpf-actions/[email protected] | ||
| if: always() | ||
| uses: ansys/pydpf-actions/[email protected] | ||
|
|
||
| - name: "Test API test_custom_type_field" | ||
| uses: nick-fields/retry@v2 | ||
|
|
@@ -361,15 +346,13 @@ jobs: | |
| pytest $DEBUG $COVERAGE $RERUNS --junitxml=../tests/junit/test-results11.xml test_custom_type_field/. | ||
|
|
||
| - name: "Kill all servers" | ||
| uses: ansys/pydpf-actions/[email protected] | ||
| if: always() | ||
| uses: ansys/pydpf-actions/[email protected] | ||
|
|
||
| - name: "Upload Test Results" | ||
| uses: actions/upload-artifact@v3 | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: ${{ env.PACKAGE_NAME }}_${{ matrix.python-version }}_${{ matrix.os }}_pytest_${{ inputs.ANSYS_VERSION }} | ||
| name: ${{ env.PACKAGE_NAME }}_${{ matrix.python-version }}_${{ matrix.os }}_pytest_${{ inputs.ANSYS_VERSION }}_${{ inputs.test_any == 'true' && 'any' || '' }} | ||
| path: tests/junit/test-results.xml | ||
| if: always() | ||
|
|
||
| - name: "Upload coverage to Codecov" | ||
| uses: codecov/codecov-action@v3 | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.