Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ body:
- type: dropdown
id: severity
attributes:
label: '🚦 Defines the severity of the bug. In the case of class-3, [specific information must be added](https://github.com/ansys-internal/QP-2-Template/blob/main/.github/ISSUE_TEMPLATE/class3.md)'
label: '🚦 Defines the severity of the bug. In the case of class-3, specific information must be added.'
options:
- "Class 1 - Crash/Major data loss"
- "Class 2 - Serious problem"
Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/story.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ body:
attributes:
label: Additional Links
description: Links to Test Cases / Features / Other User Stories
placeholder: "[Issue #1](https://github.com/ansys-internal/QP-2-Template)"
placeholder:
validations:
required: false

Expand Down
75 changes: 0 additions & 75 deletions .github/workflows/build_and_package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -212,75 +212,12 @@ jobs:
name: test-logs
path: tests/artifacts/smoke

# --- SAF smoke tests ---
# - name: Install SAF CLI
# run: pip install ansys-saf-cli

# - name: Clone saf-visor-poc
# uses: actions/checkout@v4
# with:
# repository: ansys-internal/saf-visor-poc
# token: ${{ secrets.PYANSYS_CI_BOT_TOKEN }}
# path: saf-visor-poc

# - name: Install saf-visor-poc dependencies
# env:
# POETRY_HTTP_BASIC_SOLUTIONS_PRIVATE_PYPI_USERNAME: ${{ secrets.SOLUTIONS_PRIVATE_PYPI_USERNAME }}
# POETRY_HTTP_BASIC_SOLUTIONS_PRIVATE_PYPI_PASSWORD: ${{ secrets.SOLUTIONS_PRIVATE_PYPI_PASSWORD }}
# working-directory: saf-visor-poc
# run: |
# poetry run saf install .

# - name: Run SAF smoke tests
# continue-on-error: true
# env:
# DISPLAY: ":99"
# VTK_DEFAULT_RENDER_WINDOW_OFFSCREEN: "1"
# run: |
# set -o pipefail
# mkdir -p tests/artifacts/saf-smoke/reports
# poetry run pytest tests/e2e/smoke/test_smoke_saf_visor.py \
# --saf-project-dir "${{ github.workspace }}/saf-visor-poc" \
# --html=tests/artifacts/saf-smoke/reports/saf-smoke-tests.html \
# --self-contained-html \
# --junitxml=tests/artifacts/saf-smoke/reports/saf-smoke-junit.xml \
# --verbose \
# | tee tests/artifacts/saf-smoke/reports/saf-smoke-result.log

# - name: Check SAF smoke test results
# if: always()
# id: check_saf
# env:
# MISSING_XML_MODE: error
# DETECT_ERRORS: "true"
# run: |
# bash .github/scripts/check_junit_results.sh \
# "saf-smoke:tests/artifacts/saf-smoke/reports/saf-smoke-junit.xml"

# - name: Upload SAF smoke test logs
# if: always()
# uses: actions/upload-artifact@v4
# with:
# name: saf-smoke-logs
# path: tests/artifacts/saf-smoke

- name: Upload Python package
uses: actions/upload-artifact@v4
with:
name: visor
path: dist/*.whl

- name: Release to Azure Solutions PyPI
if: |
(github.event_name == 'schedule' && github.ref == 'refs/heads/main') ||
(github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v'))
uses: ansys-internal/solution-applications-actions/release-to-private-pypi@v18
with:
python-version: ${{ env.MAIN_PYTHON_VERSION }}
twine-repository-url: https://pkgs.dev.azure.com/ansys-solutions/_packaging/ansys-solutions/pypi/upload/
twine-username: "TOKEN"
twine-password: ${{ secrets.SOLUTIONS_PRIVATE_PYPI_UPLOAD_TOKEN }}

- name: "Upload artifacts to PyPI"
if: (github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v'))
uses: pypa/gh-action-pypi-publish@ba38be9e461d3875417946c167d0b5f3d385a247 # v1.14.1
Expand All @@ -293,18 +230,6 @@ jobs:
outputs:
package_version: ${{ steps.set_package_version.outputs.package_version }}

sbom:
name: Generate and Publish SBOM
needs: build
if: |
(github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v'))
uses: ansys-internal/saf-github-workflow-templates/.github/workflows/_sbom.yml@v4
with:
package_type: poetry
sbom-name: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') && format('viewer-visor/{0}', github.ref_name) || 'viewer-visor' }}
publish: true
secrets: inherit

docker:
needs: build
if: |
Expand Down
164 changes: 0 additions & 164 deletions .github/workflows/generate_legal_notice.yml

This file was deleted.

39 changes: 0 additions & 39 deletions .github/workflows/python-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -140,45 +140,6 @@ jobs:
mkdir -p tests/artifacts/smoke/reports
poetry run pytest tests/e2e/smoke -m "not saf" --html=tests/artifacts/smoke/reports/smoke-tests.html --self-contained-html --junitxml=tests/artifacts/smoke/reports/smoke-junit.xml --verbose | tee tests/artifacts/smoke/reports/smoke-result.log

# SAF-related steps temporarily disabled
# # saf-visor-poc currently only supports Python 3.11 and 3.12
# - name: Install SAF CLI
# if: matrix.python-version == '3.11' || matrix.python-version == '3.12'
# run: pip install ansys-saf-cli

# - name: Clone saf-visor-poc
# if: matrix.python-version == '3.11' || matrix.python-version == '3.12'
# uses: actions/checkout@v4
# with:
# repository: ansys-internal/saf-visor-poc
# token: ${{ secrets.PYANSYS_CI_BOT_TOKEN }}
# path: saf-visor-poc

# - name: Install saf-visor-poc dependencies
# if: matrix.python-version == '3.11' || matrix.python-version == '3.12'
# env:
# POETRY_HTTP_BASIC_SOLUTIONS_PRIVATE_PYPI_USERNAME: ${{ secrets.SOLUTIONS_PRIVATE_PYPI_USERNAME }}
# POETRY_HTTP_BASIC_SOLUTIONS_PRIVATE_PYPI_PASSWORD: ${{ secrets.SOLUTIONS_PRIVATE_PYPI_PASSWORD }}
# working-directory: saf-visor-poc
# run: poetry run saf install .

# - name: Run SAF smoke tests
# if: matrix.python-version == '3.11' || matrix.python-version == '3.12'
# continue-on-error: true
# env:
# DISPLAY: ":99"
# VTK_DEFAULT_RENDER_WINDOW_OFFSCREEN: "1"
# run: |
# set -o pipefail
# mkdir -p tests/artifacts/saf-smoke/reports
# poetry run pytest tests/e2e/smoke/test_smoke_saf_visor.py \
# --saf-project-dir "${{ github.workspace }}/saf-visor-poc" \
# --html=tests/artifacts/saf-smoke/reports/saf-smoke-tests.html \
# --self-contained-html \
# --junitxml=tests/artifacts/saf-smoke/reports/saf-smoke-junit.xml \
# --verbose \
# | tee tests/artifacts/saf-smoke/reports/saf-smoke-result.log

- name: Run Regression tests
continue-on-error: true
env:
Expand Down
1 change: 1 addition & 0 deletions doc/changelog.d/72.maintenance.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Clean up internal refs in workflows
Loading