File tree Expand file tree Collapse file tree 1 file changed +16
-10
lines changed Expand file tree Collapse file tree 1 file changed +16
-10
lines changed Original file line number Diff line number Diff line change 90
90
os :
91
91
- ubuntu-latest
92
92
- macos-latest
93
+ - windows-latest
93
94
python :
94
95
- ' 3.10'
95
96
- ' 3.11'
98
99
os_name : Linux
99
100
- os : macos-latest
100
101
os_name : macOS
102
+ - os : windows-latest
103
+ os_name : Windows
101
104
steps :
102
105
- name : Setup Python
103
106
uses : actions/setup-python@v4
@@ -108,16 +111,19 @@ jobs:
108
111
with :
109
112
name : ${{ needs.build.outputs.artifact_name }}
110
113
path : .
111
- - name : Get meta
112
- id : meta
113
- run : echo "whl=$(ls *.whl | head -n1)" >> $GITHUB_OUTPUT
114
+ - name : Find wheels
115
+ uses : tj-actions/glob@v16
116
+ id : wheels
117
+ with :
118
+ files : ' *.whl'
114
119
- name : Install
115
- run : pip install $PACKAGE
116
- env :
117
- PACKAGE : ${{ steps.meta.outputs.whl }}
118
- - name : Import
119
- run : echo "import $PACKAGE_IMPORT_NAME" > main.py
120
- env :
121
- PACKAGE_IMPORT_NAME : makenew_pypackage
120
+ run : pip install ${{ steps.wheels.outputs.paths }}
121
+ - name : Create main.py
122
+ uses :
DamianReeves/[email protected]
123
+ with :
124
+ write-mode : overwrite
125
+ path : main.py
126
+ contents : |
127
+ import makenew_pypackage
122
128
- name : Run
123
129
run : python main.py
You can’t perform that action at this time.
0 commit comments