Skip to content

Commit c277a8d

Browse files
committed
Test install on Windows
1 parent 9197e19 commit c277a8d

File tree

1 file changed

+16
-10
lines changed

1 file changed

+16
-10
lines changed

.github/workflows/check.yml

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ jobs:
9090
os:
9191
- ubuntu-latest
9292
- macos-latest
93+
- windows-latest
9394
python:
9495
- '3.10'
9596
- '3.11'
@@ -98,6 +99,8 @@ jobs:
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/[email protected]
123+
with:
124+
write-mode: overwrite
125+
path: main.py
126+
contents: |
127+
import makenew_pypackage
122128
- name: Run
123129
run: python main.py

0 commit comments

Comments
 (0)