Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(ci): make Python version dynamic #68

Merged
merged 3 commits into from
Feb 7, 2025
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
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% raw %}---
---
name: Setup Python and Poetry Action
description: Configure system, Python, Poetry and deps and cache management.

Expand All @@ -7,7 +7,7 @@ inputs:
default: ubuntu-latest
description: The operating system to use
python-version:
default: '3.11'
default: '{{ cookiecutter.python_version }}'
description: The version of Python to use
poetry-version:
default: '1.8.2'
Expand All @@ -26,8 +26,8 @@ runs:
- uses: 'actions/setup-python@v5'
id: setup-python
with:
python-version: '${{ inputs.python-version }}'

python-version: '{{ cookiecutter.python_version }}'
{% raw %}
- name: Setup pipx environment Variables
id: pipx-env-setup
# pipx default home and bin dir are not writable by the cache action
Expand Down Expand Up @@ -89,4 +89,6 @@ runs:
if: steps.poetry-cache.outputs.cache-hit != 'true'
shell: bash
run: poetry install ${{ inputs.poetry-install-options }} --no-interaction
...{% endraw %}
{% endraw %}
...

Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
uses: ./.github/actions/setup/poetry
with:
{% raw %}os: ${{ job.os }}{% endraw %}
python-version: '3.11'
python-version: '{{ cookiecutter.python_version }}'
poetry-install-options: "--only=vulnerability --no-root"
poetry-export-options: "--only=vulnerability"

Expand All @@ -47,7 +47,7 @@ jobs:
uses: ./.github/actions/setup/poetry
with:
{% raw %}os: ${{ job.os }}{% endraw %}
python-version: '3.11'
python-version: '{{ cookiecutter.python_version }}'
poetry-install-options: "--only=vulnerability --no-root"
poetry-export-options: "--only=vulnerability"

Expand Down