Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
1623168
Creating new branch to test the wheels with underscores
rborsaru-ansys Jun 12, 2025
8d73f86
Adding the working-directory input to be able to find the toml file
rborsaru-ansys Jun 12, 2025
7ea50fa
Fix for working folder
rborsaru-ansys Jun 12, 2025
1bf8a6d
Trying a new path for working directory
rborsaru-ansys Jun 13, 2025
2dc268d
Merge branch 'main' into fix/unify-artifacts-file-names
rborsaru-ansys Jun 16, 2025
5928251
Remove changes from ci_cd as these cannot be tested
rborsaru-ansys Jun 16, 2025
0ee82ce
chore: adding changelog file 907.added.md [dependabot-skip]
pyansys-ci-bot Jun 16, 2025
4baf6dc
Change wheel package name from dashes to underscores
rborsaru-ansys Jun 16, 2025
54632e5
Merge branch 'fix/unify-artifacts-file-names' of https://github.com/a…
rborsaru-ansys Jun 16, 2025
26725d3
ci(workflow): test wheelhouse
jorgepiloto Jun 16, 2025
b1acf80
Try to add wheel build during ci_cd run
rborsaru-ansys Jun 16, 2025
3cea84f
Change matrix name from python-version to python
rborsaru-ansys Jun 16, 2025
5ee2919
Change env name from PACKAGE_NAME to LIBRARY_NAME
rborsaru-ansys Jun 16, 2025
a4652c5
Change env LIBRARY_NAME to ansys-actions-core
rborsaru-ansys Jun 16, 2025
6b970fa
Adding package library step after wheelhouse step
rborsaru-ansys Jun 18, 2025
d7ba28a
syntax errror inside needs statement
rborsaru-ansys Jun 18, 2025
8018041
changed job name
rborsaru-ansys Jun 18, 2025
5605e68
removing package lib step to check if code style fails
rborsaru-ansys Jun 18, 2025
c0e9907
adding the job without trailing spaces
rborsaru-ansys Jun 18, 2025
9fd5b9d
adding working-directory to build-library action
rborsaru-ansys Jun 18, 2025
7a882df
changed the sbom file name from dash to underscore
rborsaru-ansys Jun 18, 2025
8647470
Change library name to ansys-actions
rborsaru-ansys Jun 19, 2025
7bc9e85
Removing package-library as this is done part of the tests job
rborsaru-ansys Jun 19, 2025
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
4 changes: 2 additions & 2 deletions .ci/ansys-actions/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "flit_core.buildapi"

[project]
# Check https://flit.readthedocs.io/en/latest/pyproject_toml.html for all available sections
name = "ansys-actions-core"
name = "ansys-actions"
version = "10.1.dev0"
description = "A demo library for testing Ansys actions"
readme = "README.rst"
Expand All @@ -24,7 +24,7 @@ classifiers = [
dependencies = ["importlib-metadata >=4.0"]

[tool.flit.module]
name = "ansys.actions.core"
name = "ansys.actions"

[project.urls]
Source = "https://github.com/ansys/actions"
Expand Down
18 changes: 18 additions & 0 deletions .github/workflows/ci_cd_night.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,27 @@ jobs:
bot-user: ${{ secrets.PYANSYS_CI_BOT_USERNAME }}
bot-email: ${{ secrets.PYANSYS_CI_BOT_EMAIL }}

wheelhouse:
name: "Wheelhouse / ${{ matrix.os }} / ${{ matrix.python }}"
runs-on: ${{ matrix.os }}
if: github.event.action != 'closed'
permissions:
id-token: write
contents: write
strategy:
fail-fast: false
matrix:
os: ['ubuntu-latest', 'windows-latest']
python: ['3.10', '3.11', '3.12', '3.13']
steps:
- uses: ansys/actions/build-wheelhouse@fix/unify-artifacts-file-names
with:
working-directory: .ci/ansys-actions

tests:
name: "Tests"
runs-on: ubuntu-latest
needs: wheelhouse
permissions:
id-token: write
contents: write
Expand Down
35 changes: 34 additions & 1 deletion .github/workflows/ci_cd_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -156,10 +156,43 @@ jobs:
bot-email: ${{ secrets.PYANSYS_CI_BOT_EMAIL }}
maximum-pr-doc-deployments: 10

wheelhouse:
name: "Wheelhouse / ${{ matrix.os }} / ${{ matrix.python }}"
runs-on: ${{ matrix.os }}
needs: code-style
if: github.event.action != 'closed'
permissions:
id-token: write
contents: write
strategy:
fail-fast: false
matrix:
os: ['ubuntu-latest', 'windows-latest']
python: ['3.10', '3.11', '3.12', '3.13']
steps:
- uses: ansys/actions/build-wheelhouse@fix/unify-artifacts-file-names
with:
library-name: ${{ env.LIBRARY_NAME }}
operating-system: ${{ matrix.os }}
python-version: ${{ matrix.python }}
working-directory: .ci/ansys-actions

# package-library:
# name: "Package library"
# needs: wheelhouse
# runs-on: ubuntu-22.04
# steps:
# - name: "Build library source and wheel artifacts"
# uses: ansys/actions/build-library@fix/unify-artifacts-file-names
# with:
# library-name: ${{ env.LIBRARY_NAME }}
# python-version: ${{ env.MAIN_PYTHON_VERSION }}
# working-directory: .ci/ansys-actions

tests:
name: "Tests"
runs-on: ubuntu-latest
needs: code-style
needs: wheelhouse
if: github.event.action != 'closed'
permissions:
id-token: write
Expand Down
18 changes: 18 additions & 0 deletions .github/workflows/ci_cd_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,24 @@ jobs:
use-python-cache: false
needs-quarto: true

wheelhouse:
name: "Wheelhouse / ${{ matrix.os }} / ${{ matrix.python }}"
runs-on: ${{ matrix.os }}
needs: code-style
if: github.event.action != 'closed'
permissions:
id-token: write
contents: write
strategy:
fail-fast: false
matrix:
os: ['ubuntu-latest', 'windows-latest']
python: ['3.10', '3.11', '3.12', '3.13']
steps:
- uses: ansys/actions/build-wheelhouse@fix/unify-artifacts-file-names
with:
working-directory: .ci/ansys-actions

tests:
name: "Tests"
runs-on: ubuntu-latest
Expand Down
3 changes: 2 additions & 1 deletion build-library/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,9 @@ runs:
shell: bash
env:
INSTALL_COMMAND: ${{ inputs.use-uv == 'true' && 'uv pip install --no-managed-python --system' || 'python -m pip install' }}
WORKING_DIRECTORY: ${{ inputs.working-directory }}
run: |
$INSTALL_COMMAND .
$INSTALL_COMMAND $WORKING_DIRECTORY

- name: "Ensure tag version matches metadata version when triggered by push of tags"
if: github.event_name == 'push' && contains(github.ref, 'refs/tags')
Expand Down
14 changes: 7 additions & 7 deletions build-wheelhouse/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -341,13 +341,13 @@ runs:
~/.local/bin/syft .venv --source-name "${LIBRARY_NAME}" --source-version "${LIBRARY_VERSION}" -o spdx > sbom.spdx

echo "Renaming SBOM file..."
mv sbom.spdx "${LIBRARY_NAME}-v${LIBRARY_VERSION}-${WHEELHOUSE_TARGET}-${OPERATING_SYSTEM}-${PYTHON_VERSION}-sbom.spdx"
mv sbom.spdx "${LIBRARY_NAME}_v${LIBRARY_VERSION}_${WHEELHOUSE_TARGET}_${OPERATING_SYSTEM}_${PYTHON_VERSION}_sbom.spdx"

- name: "Upload the SBOM file"
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
name: ${{ inputs.library-name }}-v${{ steps.library-version.outputs.library_version }}-${{ steps.specific-target-requested.outputs.wheelhouse_target }}-${{ inputs.operating-system }}-${{ inputs.python-version }}-sbom
path: ${{ inputs.library-name }}-v${{ steps.library-version.outputs.library_version }}-${{ steps.specific-target-requested.outputs.wheelhouse_target }}-${{ inputs.operating-system }}-${{ inputs.python-version }}-sbom.spdx
name: ${{ inputs.library-name }}_v${{ steps.library-version.outputs.library_version }}_${{ steps.specific-target-requested.outputs.wheelhouse_target }}_${{ inputs.operating-system }}_${{ inputs.python-version }}_sbom
path: ${{ inputs.library-name }}_v${{ steps.library-version.outputs.library_version }}_${{ steps.specific-target-requested.outputs.wheelhouse_target }}_${{ inputs.operating-system }}_${{ inputs.python-version }}_sbom.spdx
retention-days: 7

- name: Generate build provenance attestation
Expand Down Expand Up @@ -385,20 +385,20 @@ runs:
uses: vimtor/action-zip@1379ea20d4c5705669ba81fd626dd01b1c738f26 # v1.2
with:
files: wheelhouse
dest: ${{ inputs.library-name }}-v${{ steps.library-version.outputs.library_version }}-${{ steps.specific-target-requested.outputs.wheelhouse_target }}-${{ inputs.operating-system }}-${{ inputs.python-version }}.zip
dest: ${{ inputs.library-name }}_v${{ steps.library-version.outputs.library_version }}_${{ steps.specific-target-requested.outputs.wheelhouse_target }}_${{ inputs.operating-system }}_${{ inputs.python-version }}.zip

- name: "Upload the compressed wheelhouse"
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
name: ${{ inputs.library-name }}-v${{ steps.library-version.outputs.library_version }}-${{ steps.specific-target-requested.outputs.wheelhouse_target }}-${{ inputs.operating-system }}-${{ inputs.python-version }}
path: ${{ inputs.library-name }}-v${{ steps.library-version.outputs.library_version }}-${{ steps.specific-target-requested.outputs.wheelhouse_target }}-${{ inputs.operating-system }}-${{ inputs.python-version }}.zip
name: ${{ inputs.library-name }}_v${{ steps.library-version.outputs.library_version }}_${{ steps.specific-target-requested.outputs.wheelhouse_target }}_${{ inputs.operating-system }}_${{ inputs.python-version }}
path: ${{ inputs.library-name }}_v${{ steps.library-version.outputs.library_version }}_${{ steps.specific-target-requested.outputs.wheelhouse_target }}_${{ inputs.operating-system }}_${{ inputs.python-version }}.zip
retention-days: 7

- name: Generate build provenance attestation
if: inputs.attest-provenance == 'true'
uses: actions/attest-build-provenance@db473fddc028af60658334401dc6fa3ffd8669fd # v2.3.0
with:
subject-path: ${{ inputs.library-name }}-v${{ steps.library-version.outputs.library_version }}-${{ steps.specific-target-requested.outputs.wheelhouse_target }}-${{ inputs.operating-system }}-${{ inputs.python-version }}.zip
subject-path: ${{ inputs.library-name }}_v${{ steps.library-version.outputs.library_version }}_${{ steps.specific-target-requested.outputs.wheelhouse_target }}_${{ inputs.operating-system }}_${{ inputs.python-version }}.zip

- name: Check library's dependencies license
uses: ansys/actions/check-licenses@main
Expand Down
1 change: 1 addition & 0 deletions doc/source/changelog/907.added.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Generate wheels package with underscores instead of dashes
Loading