-
Couldn't load subscription status.
- Fork 23
ci: fix usage of repository variable as workflow input #2305
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 11 commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
bffe5a3
Update docs.yml
PProfizi b8b0200
Update ci.yml
PProfizi e4d34bd
Update docs.yml
PProfizi 8d4c66a
Update examples.yml
PProfizi 6f97fd9
Update docs.yml
PProfizi d2aee42
Update examples_docker.yml
PProfizi 70871c2
Update pydpf-post.yml
PProfizi a2dbcf2
Update test_docker.yml
PProfizi ce0a6c6
Update tests.yml
PProfizi 7751fe3
Update update_operators.yml
PProfizi bb179ed
Update tests.yml
PProfizi 42201e7
ansys_version -> ANSYS_VERSION input name
PProfizi fc1b9d1
Update .github/workflows/update_operators.yml
PProfizi 024bad5
Fix use of ansys version input in tests.yml
PProfizi 9751ab1
Fix use of ansys version input in all workflows
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -11,7 +11,6 @@ on: | |
| ANSYS_VERSION: | ||
| required: false | ||
| type: string | ||
| default: vars.ANSYS_VERSION_DEFAULT | ||
| standalone_suffix: | ||
| description: "Suffix of the branch on standalone" | ||
| required: false | ||
|
|
@@ -27,9 +26,8 @@ on: | |
| default: '["3.10"]' | ||
| ANSYS_VERSION: | ||
| description: "ANSYS version to run." | ||
| required: true | ||
| required: false | ||
| type: string | ||
| default: vars.ANSYS_VERSION_DEFAULT | ||
| standalone_suffix: | ||
| description: "Suffix of the branch on standalone" | ||
| required: false | ||
|
|
@@ -65,7 +63,7 @@ jobs: | |
| - uses: actions/checkout@v4 | ||
|
|
||
| - name: "Set licensing if necessary" | ||
| if: inputs.ANSYS_VERSION > 231 | ||
| if: ${{ (github.event.inputs.ansys_version || vars.ANSYS_VERSION_DEFAULT) > '231' }} | ||
PProfizi marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| shell: bash | ||
| run: | | ||
| echo "ANSYS_DPF_ACCEPT_LA=Y" >> $GITHUB_ENV | ||
|
|
@@ -109,7 +107,7 @@ jobs: | |
| with: | ||
| dpf-standalone-TOKEN: ${{secrets.DPF_PIPELINE}} | ||
| standalone_suffix: ${{ inputs.standalone_suffix }} | ||
| ANSYS_VERSION : ${{inputs.ANSYS_VERSION}} | ||
| ANSYS_VERSION : ${{ inputs.ansys_version || vars.ANSYS_VERSION_DEFAULT }} | ||
PProfizi marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| - name: "Check licences of packages" | ||
| uses: ansys/pydpf-actions/[email protected] | ||
|
|
||
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 |
|---|---|---|
|
|
@@ -11,7 +11,6 @@ on: | |
| ANSYS_VERSION: | ||
| required: false | ||
| type: string | ||
| default: vars.ANSYS_VERSION_DEFAULT | ||
| standalone_suffix: | ||
| description: "Suffix of the branch on standalone" | ||
| required: false | ||
|
|
@@ -27,9 +26,8 @@ on: | |
| default: '["3.10"]' | ||
| ANSYS_VERSION: | ||
| description: "ANSYS version to run." | ||
| required: true | ||
| required: false | ||
| type: string | ||
| default: vars.ANSYS_VERSION_DEFAULT | ||
| standalone_suffix: | ||
| description: "Suffix of the branch on standalone" | ||
| required: false | ||
|
|
@@ -105,7 +103,7 @@ jobs: | |
| with: | ||
| dpf-standalone-TOKEN: ${{secrets.DPF_PIPELINE}} | ||
| standalone_suffix: ${{ inputs.standalone_suffix }} | ||
| ANSYS_VERSION : ${{inputs.ANSYS_VERSION}} | ||
| ANSYS_VERSION : ${{ github.event.inputs.ansys_version || vars.ANSYS_VERSION_DEFAULT }} | ||
PProfizi marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| - name: "Check licences of packages" | ||
| uses: ansys/pydpf-actions/[email protected] | ||
|
|
||
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 |
|---|---|---|
|
|
@@ -10,7 +10,6 @@ on: | |
| ANSYS_VERSION: | ||
| required: false | ||
| type: string | ||
| default: vars.ANSYS_VERSION_DEFAULT | ||
| standalone_suffix: | ||
| description: "Suffix of the branch on standalone" | ||
| required: false | ||
|
|
@@ -30,9 +29,8 @@ on: | |
| type: string | ||
| ANSYS_VERSION: | ||
| description: "ANSYS version" | ||
| required: true | ||
| required: false | ||
| type: string | ||
| default: vars.ANSYS_VERSION_DEFAULT | ||
| standalone_suffix: | ||
| description: "Suffix of the branch on standalone" | ||
| required: false | ||
|
|
@@ -62,7 +60,7 @@ jobs: | |
| - uses: actions/checkout@v4 | ||
|
|
||
| - name: "Set licensing if necessary" | ||
| if: inputs.ANSYS_VERSION > 231 | ||
| if: ${{ (github.event.inputs.ansys_version || vars.ANSYS_VERSION_DEFAULT) > '231' }} | ||
PProfizi marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| shell: bash | ||
| run: | | ||
| echo "ANSYS_DPF_ACCEPT_LA=Y" >> $GITHUB_ENV | ||
|
|
@@ -106,7 +104,7 @@ jobs: | |
| with: | ||
| dpf-standalone-TOKEN: ${{secrets.DPF_PIPELINE}} | ||
| standalone_suffix: ${{ inputs.standalone_suffix }} | ||
| ANSYS_VERSION : ${{inputs.ANSYS_VERSION}} | ||
| ANSYS_VERSION : ${{ github.event.inputs.ansys_version || vars.ANSYS_VERSION_DEFAULT }} | ||
PProfizi marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| - name: "Check licences of packages" | ||
| uses: ansys/pydpf-actions/[email protected] | ||
|
|
||
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 |
|---|---|---|
|
|
@@ -12,7 +12,6 @@ on: | |
| ANSYS_VERSION: | ||
| required: false | ||
| type: string | ||
| default: vars.ANSYS_VERSION_DEFAULT | ||
| # Can be called manually | ||
| workflow_dispatch: | ||
| inputs: | ||
|
|
@@ -23,9 +22,8 @@ on: | |
| default: '' | ||
| ANSYS_VERSION: | ||
| description: "ANSYS version to run." | ||
| required: true | ||
| required: false | ||
| type: string | ||
| default: vars.ANSYS_VERSION_DEFAULT | ||
|
|
||
| env: | ||
| PACKAGE_NAME: ansys-dpf-core | ||
|
|
@@ -87,7 +85,7 @@ jobs: | |
| with: | ||
| dpf-standalone-TOKEN: ${{secrets.DPF_PIPELINE}} | ||
| standalone_suffix: ${{ inputs.standalone_suffix }} | ||
| ANSYS_VERSION : ${{inputs.ANSYS_VERSION}} | ||
| ANSYS_VERSION : ${{ github.event.inputs.ansys_version || vars.ANSYS_VERSION_DEFAULT }} | ||
PProfizi marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| - name: "Check licences of packages" | ||
| uses: ansys/pydpf-actions/[email protected] | ||
|
|
@@ -219,21 +217,21 @@ jobs: | |
| - name: "Upload Test Results" | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: ${{ env.PACKAGE_NAME }}_${{ matrix.python-version }}_${{ matrix.os }}_pytest_${{ inputs.ANSYS_VERSION }}_docker | ||
| name: ${{ env.PACKAGE_NAME }}_${{ matrix.python-version }}_${{ matrix.os }}_pytest_${{ github.event.inputs.ansys_version || vars.ANSYS_VERSION_DEFAULT }}_docker | ||
PProfizi marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| path: tests/junit/test-results.xml | ||
| timeout-minutes: 5 | ||
|
|
||
| - name: "Upload coverage to Codecov" | ||
| uses: codecov/codecov-action@v4 | ||
| with: | ||
| token: ${{ secrets.CODECOV_TOKEN }} # required | ||
| name: ${{ env.PACKAGE_NAME }}_${{ matrix.python-version }}_${{ matrix.os }}_pytest_${{ inputs.ANSYS_VERSION }}_docker.xml | ||
| flags: docker,${{ inputs.ANSYS_VERSION }},${{ matrix.os }},${{ matrix.python-version }} | ||
| name: ${{ env.PACKAGE_NAME }}_${{ matrix.python-version }}_${{ matrix.os }}_pytest_${{ github.event.inputs.ansys_version || vars.ANSYS_VERSION_DEFAULT }}_docker.xml | ||
| flags: docker,${{ github.event.inputs.ansys_version || vars.ANSYS_VERSION_DEFAULT }},${{ matrix.os }},${{ matrix.python-version }} | ||
PProfizi marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| - name: "Upload test analytics results to Codecov" | ||
| if: ${{ !cancelled() }} | ||
| uses: codecov/test-results-action@v1 | ||
| with: | ||
| token: ${{ secrets.CODECOV_TOKEN }} | ||
| name: test_results_${{ env.PACKAGE_NAME }}_${{ matrix.python-version }}_${{ matrix.os }}_${{ inputs.ANSYS_VERSION }}${{ inputs.test_any == 'true' && '_any' || '' }} | ||
| flags: ${{ inputs.ANSYS_VERSION }},${{ matrix.os }},${{ matrix.python-version }}${{ inputs.test_any == 'true' && ',any' || '' }} | ||
| name: test_results_${{ env.PACKAGE_NAME }}_${{ matrix.python-version }}_${{ matrix.os }}_${{ github.event.inputs.ansys_version || vars.ANSYS_VERSION_DEFAULT }}${{ inputs.test_any == 'true' && '_any' || '' }} | ||
PProfizi marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| flags: ${{ github.event.inputs.ansys_version || vars.ANSYS_VERSION_DEFAULT }},${{ matrix.os }},${{ matrix.python-version }}${{ inputs.test_any == 'true' && ',any' || '' }} | ||
PProfizi marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
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 |
|---|---|---|
|
|
@@ -11,7 +11,6 @@ on: | |
| ANSYS_VERSION: | ||
| required: false | ||
| type: string | ||
| default: vars.ANSYS_VERSION_DEFAULT | ||
| wheel: | ||
| required: false | ||
| type: string | ||
|
|
@@ -44,9 +43,8 @@ on: | |
| default: '["3.10", "3.11", "3.12"]' | ||
| ANSYS_VERSION: | ||
| description: "ANSYS version" | ||
| required: true | ||
| required: false | ||
| type: string | ||
| default: vars.ANSYS_VERSION_DEFAULT | ||
| wheel: | ||
| description: "Generate a wheel" | ||
| required: false | ||
|
|
@@ -103,7 +101,7 @@ jobs: | |
| - uses: actions/checkout@v4 | ||
|
|
||
| - name: "Set licensing if necessary" | ||
| if: inputs.ANSYS_VERSION > 231 | ||
| if: ${{ (github.event.inputs.ANSYS_VERSION || vars.ANSYS_VERSION_DEFAULT) > '231' }} | ||
| shell: bash | ||
| run: | | ||
| echo "ANSYS_DPF_ACCEPT_LA=Y" >> $GITHUB_ENV | ||
|
|
@@ -128,9 +126,9 @@ jobs: | |
| with: | ||
| path: | | ||
| .tox | ||
| key: ${{ matrix.os }}-${{ matrix.python-version }}-${{ inputs.ANSYS_VERSION }}-${{ hashFiles('requirements/*', 'pyproject.toml') }} | ||
| key: ${{ matrix.os }}-${{ matrix.python-version }}-${{ github.event.inputs.ANSYS_VERSION || vars.ANSYS_VERSION_DEFAULT }}-${{ hashFiles('requirements/*', 'pyproject.toml') }} | ||
| restore-keys: | | ||
| ${{ matrix.os }}-${{ matrix.python-version }}-${{ inputs.ANSYS_VERSION }}- | ||
| ${{ matrix.os }}-${{ matrix.python-version }}-${{ github.event.inputs.ANSYS_VERSION || vars.ANSYS_VERSION_DEFAULT }}- | ||
|
|
||
| - name: "Build the wheel" | ||
| shell: bash | ||
|
|
@@ -194,7 +192,7 @@ jobs: | |
| with: | ||
| dpf-standalone-TOKEN: ${{secrets.DPF_PIPELINE}} | ||
| standalone_suffix: ${{ inputs.standalone_suffix }} | ||
| ANSYS_VERSION : ${{inputs.ANSYS_VERSION}} | ||
| ANSYS_VERSION : ${{ github.event.inputs.ANSYS_VERSION || vars.ANSYS_VERSION_DEFAULT }} | ||
|
|
||
| - name: "Check licences of packages" | ||
| uses: ansys/pydpf-actions/[email protected] | ||
|
|
@@ -224,9 +222,9 @@ jobs: | |
| run: | | ||
| if [ $MODE == 'PIP' ]; then | ||
| if [ ${{ matrix.os }} == 'ubuntu-latest' ]; then | ||
| echo 'TOX_EXTRA_ARG=--installpkg dist/${{ steps.wheel.outputs.wheel_name }} -x testenv.deps+="-e dpf-standalone/v${{inputs.ANSYS_VERSION}}" -x testenv.commands_pre+="uv pip install --extra-index-url https://wheels.vtk.org vtk-osmesa==9.3.20240907.dev0"' >> "$GITHUB_OUTPUT" | ||
| echo 'TOX_EXTRA_ARG=--installpkg dist/${{ steps.wheel.outputs.wheel_name }} -x testenv.deps+="-e dpf-standalone/v${{ github.event.inputs.ANSYS_VERSION || vars.ANSYS_VERSION_DEFAULT }}" -x testenv.commands_pre+="uv pip install --extra-index-url https://wheels.vtk.org vtk-osmesa==9.3.20240907.dev0"' >> "$GITHUB_OUTPUT" | ||
| else | ||
| echo 'TOX_EXTRA_ARG=--installpkg dist/${{ steps.wheel.outputs.wheel_name }} -x testenv.deps+="-e dpf-standalone/v${{inputs.ANSYS_VERSION}}"' >> "$GITHUB_OUTPUT" | ||
| echo 'TOX_EXTRA_ARG=--installpkg dist/${{ steps.wheel.outputs.wheel_name }} -x testenv.deps+="-e dpf-standalone/v${{ github.event.inputs.ANSYS_VERSION || vars.ANSYS_VERSION_DEFAULT }}"' >> "$GITHUB_OUTPUT" | ||
| fi | ||
| else | ||
| if [ ${{ matrix.os }} == 'ubuntu-latest' ]; then | ||
|
|
@@ -308,21 +306,21 @@ jobs: | |
| - name: "Upload Test Results" | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: ${{ env.PACKAGE_NAME }}_${{ matrix.python-version }}_${{ matrix.os }}_pytest_${{ inputs.ANSYS_VERSION }}${{ inputs.test_any == 'true' && '_any' || '' }} | ||
| name: ${{ env.PACKAGE_NAME }}_${{ matrix.python-version }}_${{ matrix.os }}_pytest_${{ github.event.inputs.ANSYS_VERSION || vars.ANSYS_VERSION_DEFAULT }}${{ inputs.test_any == 'true' && '_any' || '' }} | ||
| path: tests/junit/test-results.xml | ||
|
|
||
| - name: "Upload coverage to Codecov" | ||
| uses: codecov/codecov-action@v4 | ||
| with: | ||
| token: ${{ secrets.CODECOV_TOKEN }} # required | ||
| file: ./.tox/.cov/coverage.xml | ||
| name: ${{ env.PACKAGE_NAME }}_${{ matrix.python-version }}_${{ matrix.os }}_pytest_${{ inputs.ANSYS_VERSION }}${{ inputs.test_any == 'true' && '_any' || '' }}.xml | ||
| flags: ${{ inputs.ANSYS_VERSION }},${{ matrix.os }},${{ matrix.python-version }}${{ inputs.test_any == 'true' && ',any' || '' }} | ||
| name: ${{ env.PACKAGE_NAME }}_${{ matrix.python-version }}_${{ matrix.os }}_pytest_${{ github.event.inputs.ANSYS_VERSION || vars.ANSYS_VERSION_DEFAULT }}${{ inputs.test_any == 'true' && '_any' || '' }}.xml | ||
| flags: ${{ github.event.inputs.ANSYS_VERSION || vars.ANSYS_VERSION_DEFAULT }},${{ matrix.os }},${{ matrix.python-version }}${{ inputs.test_any == 'true' && ',any' || '' }} | ||
|
|
||
| - name: "Upload test analytics results to Codecov" | ||
| if: ${{ !cancelled() }} | ||
| uses: codecov/test-results-action@v1 | ||
| with: | ||
| token: ${{ secrets.CODECOV_TOKEN }} | ||
| name: test_results_${{ env.PACKAGE_NAME }}_${{ matrix.python-version }}_${{ matrix.os }}_${{ inputs.ANSYS_VERSION }}${{ inputs.test_any == 'true' && '_any' || '' }} | ||
| flags: ${{ inputs.ANSYS_VERSION }},${{ matrix.os }},${{ matrix.python-version }}${{ inputs.test_any == 'true' && ',any' || '' }} | ||
| name: test_results_${{ env.PACKAGE_NAME }}_${{ matrix.python-version }}_${{ matrix.os }}_${{ github.event.inputs.ANSYS_VERSION || vars.ANSYS_VERSION_DEFAULT }}${{ inputs.test_any == 'true' && '_any' || '' }} | ||
| flags: ${{ github.event.inputs.ANSYS_VERSION || vars.ANSYS_VERSION_DEFAULT }},${{ matrix.os }},${{ matrix.python-version }}${{ inputs.test_any == 'true' && ',any' || '' }} | ||
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
Oops, something went wrong.
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.