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 9090 os :
9191 - ubuntu-latest
9292 - macos-latest
93+ - windows-latest
9394 python :
9495 - ' 3.10'
9596 - ' 3.11'
9899 os_name : Linux
99100 - os : macos-latest
100101 os_name : macOS
102+ - os : windows-latest
103+ os_name : Windows
101104 steps :
102105 - name : Setup Python
103106 uses : actions/setup-python@v4
@@ -108,16 +111,19 @@ jobs:
108111 with :
109112 name : ${{ needs.build.outputs.artifact_name }}
110113 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'
114119 - 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/write-file-action@v1.2
123+ with :
124+ write-mode : overwrite
125+ path : main.py
126+ contents : |
127+ import makenew_pypackage
122128 - name : Run
123129 run : python main.py
You can’t perform that action at this time.
0 commit comments