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

action: use the most recent python from tool cache to run the GitHub Action #1114

Merged
merged 5 commits into from Jul 14, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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

mayeut marked this conversation as resolved.
Show resolved Hide resolved
- 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: actions/setup-python@766e8c60885ef280a3e447209d1f1083b3c7039d
henryiii marked this conversation as resolved.
Show resolved Hide resolved
id: python
with:
python-version: "3.7 - 3.10"
mayeut marked this conversation as resolved.
Show resolved Hide resolved
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