Skip to content

fix: use setup-python v4.1's environmentless setup #629

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

Merged
merged 6 commits into from
Jul 13, 2022
Merged
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
12 changes: 9 additions & 3 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,16 @@ branding:
runs:
using: composite
steps:
- uses: actions/setup-python@v4
id: localpython
with:
python-version: "3.7 - 3.10"
activate-environment: false

- name: "Validate input"
id: helper
run: ${{ runner.os == 'Windows' && 'python' || 'python3' }} '${{ github.action_path }}/.github/action_helper.py' '${{ inputs.python-versions }}'
run: >
'${{ steps.localpython.outputs.python-path }}' '${{ github.action_path }}/.github/action_helper.py' '${{ inputs.python-versions }}'
shell: bash

- uses: actions/setup-python@v4
Expand Down Expand Up @@ -99,6 +106,5 @@ runs:
if: ${{ steps.helper.outputs.interpreter_count > 19 }}

- name: "Install nox"
# --python "$(which python)" => always use the last setup-python version to install nox.
run: pipx install --python "$(which python)" '${{ github.action_path }}'
run: pipx install --python "${{ steps.localpython.outputs.python-path }}" '${{ github.action_path }}'
shell: bash