File tree Expand file tree Collapse file tree 2 files changed +16
-9
lines changed Expand file tree Collapse file tree 2 files changed +16
-9
lines changed Original file line number Diff line number Diff line change 37
37
runs-on : ${{ matrix.os }}
38
38
strategy :
39
39
matrix :
40
- os : [ubuntu-latest , windows-latest, macos-11]
40
+ os : [ubuntu-18.04 , windows-latest, macos-11]
41
41
python_version : ['3.10']
42
42
timeout-minutes : 180
43
43
steps :
@@ -63,21 +63,21 @@ jobs:
63
63
run : |
64
64
python -m pip install ".[test]"
65
65
66
- - name : Sample build
67
- if : " contains(github.event.pull_request.labels.*.name, 'CI: Sample build')"
68
- run : |
69
- python bin/sample_build.py
70
-
71
- - name : Get some sample wheels
66
+ - name : Generate a sample project
72
67
run : |
73
68
python -m test.test_projects test.test_0_basic.basic_project sample_proj
74
- cibuildwheel --output-dir wheelhouse sample_proj
69
+
70
+ - name : Run a sample build (GitHub Action)
71
+ uses : ./
72
+ with :
73
+ package-dir : sample_proj
74
+ output-dir : wheelhouse
75
75
env :
76
76
CIBW_ARCHS_MACOS : x86_64 universal2 arm64
77
77
78
78
- uses : actions/upload-artifact@v3
79
79
with :
80
- name : sample_wheels
80
+ name : sample_wheels_action
81
81
path : wheelhouse
82
82
83
83
- name : Test cibuildwheel
Original file line number Diff line number Diff line change @@ -20,10 +20,17 @@ branding:
20
20
runs :
21
21
using : composite
22
22
steps :
23
+ # Set up a non-EOL, cibuildwheel & pipx supported Python version
24
+ - uses : actions/setup-python@v4
25
+ id : python
26
+ with :
27
+ python-version : " 3.7 - 3.10"
28
+ update-environment : false
23
29
24
30
# Redirecting stderr to stdout to fix interleaving issue in Actions.
25
31
- run : >
26
32
pipx run
33
+ --python '${{ steps.python.outputs.python-path }}'
27
34
--spec '${{ github.action_path }}'
28
35
cibuildwheel
29
36
${{ inputs.package-dir }}
You can’t perform that action at this time.
0 commit comments