@@ -212,75 +212,12 @@ jobs:
212212 name : test-logs
213213 path : tests/artifacts/smoke
214214
215- # --- SAF smoke tests ---
216- # - name: Install SAF CLI
217- # run: pip install ansys-saf-cli
218-
219- # - name: Clone saf-visor-poc
220- # uses: actions/checkout@v4
221- # with:
222- # repository: ansys-internal/saf-visor-poc
223- # token: ${{ secrets.PYANSYS_CI_BOT_TOKEN }}
224- # path: saf-visor-poc
225-
226- # - name: Install saf-visor-poc dependencies
227- # env:
228- # POETRY_HTTP_BASIC_SOLUTIONS_PRIVATE_PYPI_USERNAME: ${{ secrets.SOLUTIONS_PRIVATE_PYPI_USERNAME }}
229- # POETRY_HTTP_BASIC_SOLUTIONS_PRIVATE_PYPI_PASSWORD: ${{ secrets.SOLUTIONS_PRIVATE_PYPI_PASSWORD }}
230- # working-directory: saf-visor-poc
231- # run: |
232- # poetry run saf install .
233-
234- # - name: Run SAF smoke tests
235- # continue-on-error: true
236- # env:
237- # DISPLAY: ":99"
238- # VTK_DEFAULT_RENDER_WINDOW_OFFSCREEN: "1"
239- # run: |
240- # set -o pipefail
241- # mkdir -p tests/artifacts/saf-smoke/reports
242- # poetry run pytest tests/e2e/smoke/test_smoke_saf_visor.py \
243- # --saf-project-dir "${{ github.workspace }}/saf-visor-poc" \
244- # --html=tests/artifacts/saf-smoke/reports/saf-smoke-tests.html \
245- # --self-contained-html \
246- # --junitxml=tests/artifacts/saf-smoke/reports/saf-smoke-junit.xml \
247- # --verbose \
248- # | tee tests/artifacts/saf-smoke/reports/saf-smoke-result.log
249-
250- # - name: Check SAF smoke test results
251- # if: always()
252- # id: check_saf
253- # env:
254- # MISSING_XML_MODE: error
255- # DETECT_ERRORS: "true"
256- # run: |
257- # bash .github/scripts/check_junit_results.sh \
258- # "saf-smoke:tests/artifacts/saf-smoke/reports/saf-smoke-junit.xml"
259-
260- # - name: Upload SAF smoke test logs
261- # if: always()
262- # uses: actions/upload-artifact@v4
263- # with:
264- # name: saf-smoke-logs
265- # path: tests/artifacts/saf-smoke
266-
267215 - name : Upload Python package
268216 uses : actions/upload-artifact@v4
269217 with :
270218 name : visor
271219 path : dist/*.whl
272220
273- - name : Release to Azure Solutions PyPI
274- if : |
275- (github.event_name == 'schedule' && github.ref == 'refs/heads/main') ||
276- (github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v'))
277- uses : ansys-internal/solution-applications-actions/release-to-private-pypi@v18
278- with :
279- python-version : ${{ env.MAIN_PYTHON_VERSION }}
280- twine-repository-url : https://pkgs.dev.azure.com/ansys-solutions/_packaging/ansys-solutions/pypi/upload/
281- twine-username : " TOKEN"
282- twine-password : ${{ secrets.SOLUTIONS_PRIVATE_PYPI_UPLOAD_TOKEN }}
283-
284221 - name : " Upload artifacts to PyPI"
285222 if : (github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v'))
286223 uses : pypa/gh-action-pypi-publish@ba38be9e461d3875417946c167d0b5f3d385a247 # v1.14.1
@@ -293,18 +230,6 @@ jobs:
293230 outputs :
294231 package_version : ${{ steps.set_package_version.outputs.package_version }}
295232
296- sbom :
297- name : Generate and Publish SBOM
298- needs : build
299- if : |
300- (github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v'))
301- uses : ansys-internal/saf-github-workflow-templates/.github/workflows/_sbom.yml@v4
302- with :
303- package_type : poetry
304- sbom-name : ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') && format('viewer-visor/{0}', github.ref_name) || 'viewer-visor' }}
305- publish : true
306- secrets : inherit
307-
308233 docker :
309234 needs : build
310235 if : |
0 commit comments