fix: action still runs if setup-python is not called (#542)

* fix: action works if setup-python is missed

* fix: two steps

* fix: combine again

* fix: use pipx for action
This commit is contained in:
Henry Schreiner
2021-01-20 18:16:15 -05:00
committed by GitHub
parent 03f83455d8
commit 4a02410632
2 changed files with 7 additions and 5 deletions
+6 -4
View File
@@ -19,8 +19,10 @@ runs:
# This needs powershell-core because github.action path is a Windows-style # This needs powershell-core because github.action path is a Windows-style
# path on Windows. Powershell-core understands both types of paths. # path on Windows. Powershell-core understands both types of paths.
- run: python -m pip install ${{ github.action_path }} - run: >
pipx run
--spec ${{ github.action_path }}
cibuildwheel
${{ inputs.package-dir }}
--output-dir ${{ inputs.output-dir }}
shell: pwsh shell: pwsh
- run: python -m cibuildwheel ${{ inputs.package-dir }} --output-dir ${{ inputs.output-dir }}
shell: bash
+1 -1
View File
@@ -116,7 +116,7 @@ If you use GitHub Actions for builds, you can use cibuildwheel as an action:
uses: joerick/cibuildwheel@v1.7.4 uses: joerick/cibuildwheel@v1.7.4
``` ```
This is a composite step that just installs and runs cibuildwheel. You can set command-line options as `with:` parameters, and use `env:` as normal. This is a composite step that just runs cibuildwheel using pipx. You can set command-line options as `with:` parameters, and use `env:` as normal.
Then, your `dependabot.yml` file could look like this: Then, your `dependabot.yml` file could look like this: