Skip to content
Open
Show file tree
Hide file tree
Changes from 6 commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
92e3208
wip: dump dependencies into requirements files
SMoraisAnsys Sep 6, 2025
49d1422
chore: adding changelog file 991.maintenance.md [dependabot-skip]
pyansys-ci-bot Sep 6, 2025
644cbfb
refactor: move requirements in single folder
SMoraisAnsys Sep 7, 2025
3c18858
refactor: use action path to ref requirements
SMoraisAnsys Sep 7, 2025
e5bfd2e
Merge branch 'main' into chore/pin-actions-dependencies
SMoraisAnsys Sep 7, 2025
d98bd40
fix: typo in if statement and requirements.txt
SMoraisAnsys Sep 7, 2025
5488b5e
refactor: use requirement.txt per action
SMoraisAnsys Sep 8, 2025
a9f650c
fix: missing space in if statement
SMoraisAnsys Sep 8, 2025
7671d43
Merge branch 'main' into chore/pin-actions-dependencies
jorgepiloto Oct 27, 2025
3193e92
chore: add directories to dependabot pip
SMoraisAnsys Oct 27, 2025
725c4c7
feat: manage dependencies with uv (initial update)
moe-ad Nov 26, 2025
28a5314
feat: incremental update
moe-ad Nov 27, 2025
1bd4346
feat: add missing groups
moe-ad Nov 27, 2025
8cf218b
feat: requirement files exported from lockfile for pip
moe-ad Nov 27, 2025
3765478
feat: incremental update
moe-ad Nov 28, 2025
ea28f2a
feat: update dependabot pip config
moe-ad Nov 28, 2025
17c2321
feat: add uv lock file correction workflow
moe-ad Nov 28, 2025
8f60ad4
fix: update workflow comment
moe-ad Nov 28, 2025
eec7bcc
Merge branch 'main' into chore/pin-actions-dependencies
moe-ad Nov 28, 2025
661ea92
fix: logic and detected vulnerabilities
moe-ad Nov 28, 2025
40c5370
Merge branch 'main' into chore/pin-actions-dependencies
moe-ad Nov 28, 2025
900a5d7
Merge branch 'main' into chore/pin-actions-dependencies
moe-ad Dec 1, 2025
9077253
refactor: remove towncrier.toml
moe-ad Dec 1, 2025
b3091ca
fix: add bot username and email
moe-ad Dec 1, 2025
ee6d6ca
ci: update excluded paths
moe-ad Dec 1, 2025
2d38401
fix: add skip-ci to prevent re-running workflow
moe-ad Dec 1, 2025
3699232
Merge branch 'main' into chore/pin-actions-dependencies
moe-ad Dec 1, 2025
8a31d69
refactor: ci_cd_dependabot.yml
moe-ad Dec 1, 2025
89eee7d
Merge branch 'main' into chore/pin-actions-dependencies
moe-ad Dec 1, 2025
114688d
Merge branch 'main' into chore/pin-actions-dependencies
moe-ad Dec 2, 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: 3 additions & 1 deletion _release-pypi/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,10 @@ runs:
shell: bash
env:
INSTALL_COMMAND: ${{ inputs.use-uv == 'true' && 'uv pip install --no-managed-python --system' || 'python -m pip install' }}
ACTION_PATH: ${{ github.action_path }}
run: |
${INSTALL_COMMAND} --upgrade pip 'twine<6.2.0'
${INSTALL_COMMAND} --upgrade pip
${INSTALL_COMMAND} -r ${ACTION_PATH}/requirements/requirements_release_pypi.txt

- name: "Download the library artifacts from build-library step"
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
Expand Down
3 changes: 2 additions & 1 deletion build-library/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,9 @@ runs:
shell: bash
env:
INSTALL_COMMAND: ${{ inputs.use-uv == 'true' && 'uv pip install --no-managed-python --system' || 'python -m pip install' }}
ACTION_PATH: ${{ github.action_path }}
run: |
${INSTALL_COMMAND} build twine
${INSTALL_COMMAND} -r ${ACTION_PATH}/requirements/requirements_build.txt

- name: "Build distribution artifacts"
shell: bash
Expand Down
3 changes: 2 additions & 1 deletion build-wheelhouse/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -363,11 +363,12 @@ runs:
if: ${{ inputs.install-build-and-wheel == 'true' }}
shell: bash
env:
ACTION_PATH: ${{ github.action_path }}
ACTIVATE_VENV: ${{ steps.virtual-environment-activation-command.outputs.ACTIVATE_VENV }}
INSTALL_COMMAND: ${{ inputs.use-uv == 'true' && 'uv pip install --no-managed-python' || 'python -m pip install' }}
run: |
${ACTIVATE_VENV}
$INSTALL_COMMAND build wheel
$INSTALL_COMMAND -r ${ACTION_PATH}/requirements/requirements_build.txt

- name: "Generate the wheelhouse"
shell: bash
Expand Down
10 changes: 1 addition & 9 deletions check-licenses/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -167,20 +167,12 @@ runs:
run: |
$INSTALL_COMMAND -U pip

- name: Clone ansys/pip-licenses on main branch
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
repository: ansys/pip-licenses
path: "external/pip-licenses"
ref: "main"
persist-credentials: false

- name: Install ansys/pip-licenses main branch
shell: bash
env:
INSTALL_COMMAND: ${{ inputs.use-uv == 'true' && 'uv pip install --no-managed-python --system --no-cache' || 'python -m pip install --no-cache-dir' }}
run: |
$INSTALL_COMMAND external/pip-licenses
$INSTALL_COMMAND -r external/pip-licenses/requirements.txt

- name: "Check if specific target is requested"
id: specific-target-requested
Expand Down
8 changes: 4 additions & 4 deletions check-vulnerabilities/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ runs:
fi

- name: "Install Git and clone project"
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
if: ${{ inputs.checkout == 'true' }}
with:
repository: ${{ inputs.repo-full-name == '' && github.repository || inputs.repo-full-name }}
Expand Down Expand Up @@ -404,15 +404,15 @@ runs:
- name: "Install action requirements"
shell: bash
env:
ACTIVATE_VENV_BANDIT_SAFETY: ${{ steps.virtual-environment-activation-command.outputs.ACTIVATE_VENV_BANDIT_SAFETY }}
ACTION_PATH: ${{ github.action_path }}
ACTIVATE_VENV_BANDIT_SAFETY: ${{ steps.virtual-environment-activation-command.outputs.ACTIVATE_VENV_BANDIT_SAFETY }}
BUILD_BACKEND: ${{ steps.github-environment-variables.outputs.BUILD_BACKEND }}
run: |
${ACTIVATE_VENV_BANDIT_SAFETY}
if [[ "${BUILD_BACKEND}" == 'uv' ]]; then
uv pip install -r "${ACTION_PATH}/requirements.txt"
uv pip install -r ${ACTION_PATH}/requirements/requirements_check_vulnerabilities.txt
else
python -m pip install -r "${ACTION_PATH}/requirements.txt"
python -m pip install -r ${ACTION_PATH}/requirements/requirements_check_vulnerabilities.txt
fi

- name: "Install wget on Windows"
Expand Down
4 changes: 0 additions & 4 deletions check-vulnerabilities/requirements.txt

This file was deleted.

17 changes: 13 additions & 4 deletions code-style/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -258,14 +258,23 @@ runs:
- name: "Install pre-commit v${{ inputs.pre-commit-version }}"
shell: bash
env:
PRE_COMMIT_VERSION: ${{ inputs.pre-commit-version }}
ACTION_PATH: ${{ github.action_path }}
ACTIVATE_VENV: ${{ steps.virtual-environment-activation-command.outputs.ACTIVATE_VENV }}
PRE_COMMIT_VERSION: ${{ inputs.pre-commit-version }}
run: |
${ACTIVATE_VENV}
if [[ "${BUILD_BACKEND}" == 'uv' ]]; then
uv pip install "pre-commit==${PRE_COMMIT_VERSION}"
if [[ "${PRE_COMMIT_VERSION}" == "3.8.0" ]]; then
if [[ "${BUILD_BACKEND}" == 'uv' ]]; then
uv pip install -r ${ACTION_PATH}/requirements/requirements_code_style.txt
else
pip install -r ${ACTION_PATH}/requirements/requirements_code_style.txt
fi
else
python -m pip install "pre-commit==${PRE_COMMIT_VERSION}"
if [[ "${BUILD_BACKEND}" == 'uv' ]]; then
uv pip install "pre-commit==${PRE_COMMIT_VERSION}"
else
python -m pip install "pre-commit==${PRE_COMMIT_VERSION}"
fi
fi
pre-commit install

Expand Down
11 changes: 9 additions & 2 deletions doc-changelog/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -156,11 +156,18 @@ runs:
- name: "Install towncrier and tomli"
shell: bash
env:
ACTION_PATH: ${{ github.action_path }}
INSTALL_COMMAND: ${{ inputs.use-uv == 'true' && 'uv pip install --no-managed-python --system' || 'python -m pip install' }}
TOWNCRIER_VERSION: ${{ inputs.towncrier-version }}
TOMLI_VERSION: ${{ inputs.tomli-version }}
INSTALL_COMMAND: ${{ inputs.use-uv == 'true' && 'uv pip install --no-managed-python --system' || 'python -m pip install' }}
run: |
${INSTALL_COMMAND} --upgrade pip towncrier==${TOWNCRIER_VERSION} tomli==${TOMLI_VERSION}
if [[ "${TOWNCRIER_VERSION}" == "24.8.0" && "${TOMLI_VERSION}" == "2.2.1"]]; then
${INSTALL_COMMAND} --upgrade pip
${INSTALL_COMMAND} -r ${ACTION_PATH}/requirements/requirements_changelog.txt
else
${INSTALL_COMMAND} --upgrade pip
${INSTALL_COMMAND} towncrier==${TOWNCRIER_VERSION} tomli==${TOMLI_VERSION}
fi

- name: "Get first letter of conventional commit type"
if: ${{ inputs.use-conventional-commits == 'true' }}
Expand Down
8 changes: 7 additions & 1 deletion doc-deploy-changelog/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -208,11 +208,17 @@ runs:

- name: "Install towncrier, toml, and the project"
env:
ACTION_PATH: ${{ github.action_path }}
TOWNCRIER_VERSION: ${{ inputs.towncrier-version }}
TOMLI_VERSION: ${{ inputs.tomli-version }}
shell: bash
run: |
python -m pip install --upgrade pip towncrier=="${TOWNCRIER_VERSION}" tomli=="${TOMLI_VERSION}"
python -m pip install --upgrade pip
if [[ "${TOWNCRIER_VERSION}" == "24.8.0" && "${TOMLI_VERSION}" == "2.2.1"]]; then
python -m pip install -r ${ACTION_PATH}/requirements/requirements_changelog.txt
else
python -m pip install towncrier==${TOWNCRIER_VERSION} tomli==${TOMLI_VERSION}
fi

- name: "Get towncrier directory and project name"
shell: python
Expand Down
2 changes: 2 additions & 0 deletions doc-deploy-stable/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -203,9 +203,11 @@ runs:
- name: "Install packaging"
shell: bash
env:
ACTION_PATH: ${{ github.action_path }}
INSTALL_COMMAND: ${{ inputs.use-uv == 'true' && 'uv pip install --no-managed-python --system' || 'python -m pip install' }}
run: |
${INSTALL_COMMAND} --upgrade pip packaging
${INSTALL_COMMAND} -r ${ACTION_PATH}/requirements/requirements_deploy.txt

# ------------------------------------------------------------------------

Expand Down
17 changes: 9 additions & 8 deletions doc-style/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -163,17 +163,18 @@ runs:
fi
fi

- name: "Install tomli"
- name: "Install tomli and docutils"
shell: bash
env:
TOMLI_VERSION: ${{ inputs.tomli-version }}
ACTION_PATH: ${{ github.action_path }}
TOMLI_VERSION: ${{ inputs.tomli-version }}
run: |
python -m pip install --upgrade pip tomli==${TOMLI_VERSION}

- name: "Install docutils"
shell: bash
run: |
python -m pip install --upgrade docutils
python -m pip install --upgrade pip
if [[ "${TOMLI_VERSION}" == "2.2.1"]]; then
python -m pip install -r ${ACTION_PATH}/requirements/requirements_doc_style.txt
else
python -m pip install tomli==${TOMLI_VERSION} docutils==0.22
fi

- name: "Get towncrier directory"
shell: python
Expand Down
1 change: 1 addition & 0 deletions doc/source/changelog/991.maintenance.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Pin python package dependencies
4 changes: 2 additions & 2 deletions hk-package-clean-except/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,11 @@ runs:
- name: "Install ghapi"
shell: bash
env:
ACTION_PATH: ${{ github.action_path }}
INSTALL_COMMAND: ${{ inputs.use-uv == 'true' && 'uv pip install --no-managed-python --system' || 'python -m pip install' }}
run: |

${INSTALL_COMMAND} --upgrade pip
${INSTALL_COMMAND} ghapi
${INSTALL_COMMAND} -r ${ACTION_PATH}/requirements/requirements_hk_package.txt

- name: "Declare Python script"
shell: bash
Expand Down
4 changes: 2 additions & 2 deletions hk-package-clean-untagged/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,11 @@ runs:
- name: "Install ghapi"
shell: bash
env:
ACTION_PATH: ${{ github.action_path }}
INSTALL_COMMAND: ${{ inputs.use-uv == 'true' && 'uv pip install --no-managed-python --system' || 'python -m pip install' }}
run: |

${INSTALL_COMMAND} --upgrade pip
${INSTALL_COMMAND} ghapi
${INSTALL_COMMAND} -r ${ACTION_PATH}/requirements/requirements_hk_package.txt

- name: "Clone script"
shell: bash
Expand Down
12 changes: 9 additions & 3 deletions release-github/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -347,12 +347,18 @@ runs:
- name: "Install toml and pypandoc"
shell: bash
env:
ACTION_PATH: ${{ github.action_path }}
INSTALL_COMMAND: ${{ inputs.use-uv == 'true' && 'uv pip install --no-managed-python --system' || 'python -m pip install' }}
TOMLI_VERSION: ${{ inputs.tomli-version }}
PYPANDOC_BINARY_VERSION: ${{ inputs.pypandoc-binary-version }}
INSTALL_COMMAND: ${{ inputs.use-uv == 'true' && 'uv pip install --no-managed-python --system' || 'python -m pip install' }}
run: |
${INSTALL_COMMAND} --upgrade pip tomli=="$TOMLI_VERSION"
${INSTALL_COMMAND} pypandoc-binary=="$PYPANDOC_BINARY_VERSION"
if [[ "${PYPANDOC_BINARY_VERSION}" == "1.15" && "${TOMLI_VERSION}" == "2.2.1"]]; then
${INSTALL_COMMAND} --upgrade pip
${INSTALL_COMMAND} -r ${ACTION_PATH}/requirements/requirements_release_github.txt
else
${INSTALL_COMMAND} --upgrade pip tomli=="$TOMLI_VERSION"
${INSTALL_COMMAND} pypandoc-binary=="$PYPANDOC_BINARY_VERSION"
fi

- name: "Get the release notes body"
if: inputs.changelog-release-notes == 'true'
Expand Down
30 changes: 30 additions & 0 deletions requirements/requirements_build.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
backports.tarfile==1.2.0
build==1.3.0
certifi==2025.8.3
charset-normalizer==3.4.3
colorama==0.4.6
docutils==0.22
id==1.5.0
idna==3.10
importlib_metadata==8.7.0
jaraco.classes==3.4.0
jaraco.context==6.0.1
jaraco.functools==4.3.0
keyring==25.6.0
markdown-it-py==4.0.0
mdurl==0.1.2
more-itertools==10.8.0
nh3==0.3.0
packaging==25.0
Pygments==2.19.2
pyproject_hooks==1.2.0
pywin32-ctypes==0.2.3
readme_renderer==44.0
requests==2.32.5
requests-toolbelt==1.0.0
rfc3986==2.0.0
rich==14.1.0
tomli==2.2.1
twine==6.1.0
urllib3==2.5.0
zipp==3.23.0
6 changes: 6 additions & 0 deletions requirements/requirements_changelog.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
click==8.2.1
colorama==0.4.6
Jinja2==3.1.6
MarkupSafe==3.0.2
tomli==2.2.1
towncrier==24.8.0
4 changes: 4 additions & 0 deletions requirements/requirements_check_licenses.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
pip-licenses @ git+https://github.com/ansys/pip-licenses@main
prettytable==3.16.0
tomli==2.2.1
wcwidth==0.2.13
52 changes: 52 additions & 0 deletions requirements/requirements_check_vulnerabilities.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
annotated-types==0.7.0
anyio==4.10.0
Authlib==1.6.3
backports-datetime-fromisoformat==2.0.3
bandit==1.8.6
certifi==2025.8.3
cffi==1.17.1
charset-normalizer==3.4.3
click==8.2.1
colorama==0.4.6
cryptography==45.0.7
dparse==0.6.4
exceptiongroup==1.3.0
filelock==3.19.1
h11==0.16.0
httpcore==1.0.9
httpx==0.28.1
idna==3.10
Jinja2==3.1.6
joblib==1.5.2
markdown-it-py==4.0.0
MarkupSafe==3.0.2
marshmallow==4.0.1
mdurl==0.1.2
nltk==3.9.1
packaging==25.0
psutil==7.0.0
pycparser==2.22
pydantic==2.9.2
pydantic_core==2.23.4
PyGithub==2.8.1
Pygments==2.19.2
PyJWT==2.10.1
PyNaCl==1.5.0
PyYAML==6.0.2
regex==2025.9.1
requests==2.32.5
rich==14.1.0
ruamel.yaml==0.18.15
ruamel.yaml.clib==0.2.12
safety==3.6.1
safety-schemas==0.0.14
shellingham==1.5.4
sniffio==1.3.1
stevedore==5.5.0
tenacity==9.1.2
tomli==2.2.1
tomlkit==0.13.3
tqdm==4.67.1
typer==0.17.4
typing_extensions==4.15.0
urllib3==2.5.0
10 changes: 10 additions & 0 deletions requirements/requirements_code_style.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
cfgv==3.4.0
distlib==0.4.0
filelock==3.19.1
identify==2.6.13
nodeenv==1.9.1
platformdirs==4.4.0
pre-commit==3.8.0
PyYAML==6.0.2
typing_extensions==4.15.0
virtualenv==20.34.0
1 change: 1 addition & 0 deletions requirements/requirements_deploy.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
packaging==25.0
2 changes: 2 additions & 0 deletions requirements/requirements_doc_style.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
docutils==0.22
tomli==2.2.1
3 changes: 3 additions & 0 deletions requirements/requirements_hk_package.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
fastcore==1.8.8
ghapi==1.0.6
packaging==25.0
12 changes: 12 additions & 0 deletions requirements/requirements_pytest.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
colorama==0.4.6
exceptiongroup==1.3.0
iniconfig==2.1.0
packaging==25.0
pip==23.0.1
pluggy==1.6.0
Pygments==2.19.2
pytest # Not pinned to avoid conflicts with projects
pytest-randomly==3.16.0
setuptools==65.5.0
tomli==2.2.1
typing_extensions==4.15.0
2 changes: 2 additions & 0 deletions requirements/requirements_release_github.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
pypandoc_binary==1.15
tomli==2.2.1
Loading
Loading