release: v0.4.1 #496
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Autoupdate Python Versions | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 0 * * *' | |
# Or if the "scripts" directory is modified | |
push: | |
paths: | |
- 'scripts/**' | |
- '.github/workflows/autoupdate_python_versions.yml' | |
env: | |
MAIN_PYTHON_VERSION: '3.12' | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
autoupdate-python-versions: | |
name: Autoupdate Python Versions | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
token: ${{ secrets.PYANSYS_CI_BOT_TOKEN }} | |
- name: Install the latest version of uv and set the python version | |
uses: astral-sh/setup-uv@v6 | |
with: | |
python-version: ${{ env.MAIN_PYTHON_VERSION }} | |
cache-dependency-glob: '**/pyproject.toml' | |
activate-environment: true | |
- name: Run the autoupdate script | |
run: | | |
uv pip install -r scripts/requirements.txt | |
uv run scripts/update_python_versions.py | |
- name: Commit changes (if any) | |
uses: peter-evans/create-pull-request@v7 | |
with: | |
commit-message: 'chore: update Python versions' | |
token: ${{ secrets.PYANSYS_CI_BOT_TOKEN }} | |
title: 'chore: update Python versions' | |
body: 'This PR updates the Python versions in the CI configuration files.' | |
branch: feat/update-python-version | |
base: main | |
delete-branch: true | |
add-paths: src/ansys/tools/installer/constants.py |