From e11ce964eb121a39aa5a088a494d4cfd9afd183b Mon Sep 17 00:00:00 2001 From: margalva Date: Wed, 14 Oct 2026 13:17:02 -0700 Subject: [PATCH 1/3] Add workflow file --- .../workflows/nightly-saf-compatibility.yml | 57 +++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 .github/workflows/nightly-saf-compatibility.yml diff --git a/.github/workflows/nightly-saf-compatibility.yml b/.github/workflows/nightly-saf-compatibility.yml new file mode 100644 index 00000000..c4309a69 --- /dev/null +++ b/.github/workflows/nightly-saf-compatibility.yml @@ -0,0 +1,57 @@ +name: SAF Compatibility + +on: + pull_request: + branches: + - main + workflow_dispatch: + +permissions: + contents: read + +jobs: + build: + name: Build wheel + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Load Visor env + uses: ./.github/actions/load-visor-env + + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: ${{ env.MAIN_PYTHON_VERSION }} + + - name: Install Poetry + run: pip install poetry==${{ env.POETRY_VERSION }} + + - name: Build wheel + run: poetry build --format wheel + + - name: Upload wheel + uses: actions/upload-artifact@v4 + with: + name: visor-wheel + path: dist/*.whl + if-no-files-found: error + + compatibility-scan: + name: Scan SAF compatibility + needs: build + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Load Visor env + uses: ./.github/actions/load-visor-env + + - name: Scan compatibility with SAF + uses: ansys/saf-devops/compatibility-scan@main + with: + python-version: ${{ env.MAIN_PYTHON_VERSION }} + wheel-artifact-name: visor-wheel + compatibility-packages: ansys-saf-cli \ No newline at end of file From a88fe583cffe822bd6bfd255abadb55269784a37 Mon Sep 17 00:00:00 2001 From: margalva Date: Fri, 16 Oct 2026 11:11:01 -0700 Subject: [PATCH 2/3] Make the scan a single scan with multiple steps. Increase the packages it checks compatibility against --- .../workflows/nightly-saf-compatibility.yml | 42 ++++++++++++------- 1 file changed, 28 insertions(+), 14 deletions(-) diff --git a/.github/workflows/nightly-saf-compatibility.yml b/.github/workflows/nightly-saf-compatibility.yml index c4309a69..6852d9b5 100644 --- a/.github/workflows/nightly-saf-compatibility.yml +++ b/.github/workflows/nightly-saf-compatibility.yml @@ -10,8 +10,8 @@ permissions: contents: read jobs: - build: - name: Build wheel + compatibility-scan: + name: Scan SAF compatibility runs-on: ubuntu-latest steps: - name: Checkout repository @@ -38,20 +38,34 @@ jobs: path: dist/*.whl if-no-files-found: error - compatibility-scan: - name: Scan SAF compatibility - needs: build - runs-on: ubuntu-latest - steps: - - name: Checkout repository - uses: actions/checkout@v4 - - - name: Load Visor env - uses: ./.github/actions/load-visor-env - - name: Scan compatibility with SAF uses: ansys/saf-devops/compatibility-scan@main with: python-version: ${{ env.MAIN_PYTHON_VERSION }} wheel-artifact-name: visor-wheel - compatibility-packages: ansys-saf-cli \ No newline at end of file + compatibility-packages: >- + ansys-saf-sdk[core-dash] + ansys-solutions-dash-super-components + + - name: Publish compatibility report + if: always() + shell: bash + run: | + REPORT_FILE="compatibility-scan-summary.html" + if [[ ! -f "${REPORT_FILE}" ]]; then + echo "## SAF compatibility scan report" >> "${GITHUB_STEP_SUMMARY}" + echo "The compatibility scan did not produce a report." >> "${GITHUB_STEP_SUMMARY}" + exit 0 + fi + + { + echo "## SAF compatibility scan report" + sed \ + -e '//d' \ + -e '//,/<\/head>/d' \ + -e '//d' \ + -e '/<\/body>/d' \ + "${REPORT_FILE}" + } >> "${GITHUB_STEP_SUMMARY}" \ No newline at end of file From 56f09f94b7d63e1909ef855f97ceb2c2bfeda8bc Mon Sep 17 00:00:00 2001 From: pyansys-ci-bot <92810346+pyansys-ci-bot@users.noreply.github.com> Date: Fri, 16 Oct 2026 18:13:27 +0000 Subject: [PATCH 3/3] chore: adding changelog file 170.maintenance.md [dependabot-skip] --- doc/changelog.d/170.maintenance.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 doc/changelog.d/170.maintenance.md diff --git a/doc/changelog.d/170.maintenance.md b/doc/changelog.d/170.maintenance.md new file mode 100644 index 00000000..209efdd5 --- /dev/null +++ b/doc/changelog.d/170.maintenance.md @@ -0,0 +1 @@ +Add compatibility check with SAF SDK