Skip to content

Commit

Permalink
action: use the most recent python from tool cache to run the GitHub …
Browse files Browse the repository at this point in the history
…Action
  • Loading branch information
mayeut committed Jun 23, 2022
1 parent 0bf4f7a commit ce113a1
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/test.yml
Expand Up @@ -66,6 +66,19 @@ jobs:
name: sample_wheels
path: wheelhouse

- name: Get some sample wheels (GitHub Action)
uses: ./
with:
package-dir: sample_proj
output-dir: wheelhouse_action
env:
CIBW_ARCHS_MACOS: x86_64 universal2 arm64

- uses: actions/upload-artifact@v3
with:
name: sample_wheels_action
path: wheelhouse_action

- name: Test cibuildwheel
run: |
python ./bin/run_tests.py
Expand Down
7 changes: 7 additions & 0 deletions action.yml
Expand Up @@ -20,10 +20,17 @@ branding:
runs:
using: composite
steps:
# Set up a non-EOL, cibuildwheel & pipx supported Python version
- uses: mayeut/setup-python@no-envvar
id: python
with:
python-version: "3.7 - 3.10"
update-environment: false

# Redirecting stderr to stdout to fix interleaving issue in Actions.
- run: >
pipx run
--python '${{ steps.python.outputs.python-path }}'
--spec '${{ github.action_path }}'
cibuildwheel
${{ inputs.package-dir }}
Expand Down

0 comments on commit ce113a1

Please sign in to comment.