8000 Use Github Actions for Windows (#377) · ossdev07/msgpack-python@cc3a866 · GitHub
[go: up one dir, main page]

Skip to content

Commit cc3a866

Browse files
authored
Use Github Actions for Windows (msgpack#377)
1 parent 891f2d8 commit cc3a866

File tree

3 files changed

+79
-1
lines changed

3 files changed

+79
-1
lines changed

.github/workflows/windows.yaml

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
name: Build and test windows wheels
2+
on:
3+
push:
4+
branches:
5+
- master
6+
- test
7+
pull_request:
8+
create:
9+
10+
jobs:
11+
build:
12+
runs-on: windows-latest
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v1
16+
17+
- name: Cythonize
18+
shell: bash
19+
run: |
20+
pip install -U Cython
21+
make cython
22+
#python setup.py sdist
23+
24+
- name: Python 3.6 (amd64)
25+
env:
26+
PYTHON: "py -3.6-64"
27+
shell: bash
28+
run: |
29+
ci/runtests.sh
30+
31+
- name: Python 3.6 (x86)
32+
env:
33+
PYTHON: "py -3.6-32"
34+
shell: bash
35+
run: |
36+
ci/runtests.sh
37+
38+
- name: Python 3.7 (amd64)
39+
env:
40+
PYTHON: "py -3.7-64"
41+
shell: bash
42+
run: |
43+
ci/runtests.sh
44+
45+
- name: Python 3.7 (x86)
46+
env:
47+
PYTHON: "py -3.7-32"
48+
shell: bash
49+
run: |
50+
ci/runtests.sh
51+
52+
- name: Python 3.8 (amd64)
53+
env:
54+
PYTHON: "py -3.8-64"
55+
shell: bash
56+
run: |
57+
ci/runtests.sh
58+
59+
- name: Python 3.8 (x86)
60+
env:
61+
PYTHON: "py -3.8-32"
62+
shell: bash
63+
run: |
64+
ci/runtests.sh
65+
66+
- name: Upload Wheels
67+
uses: actions/upload-artifact@v1
68+
with:
69+
name: win-wheels
70+
path: ./dist

ci/runtests.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
%PYTHON%\python.exe setup.py build_ext -i
33
%PYTHON%\python.exe setup.py install
44
%PYTHON%\python.exe -c "import sys; print(hex(sys.maxsize))"
5-
%PYTHON%\python.exe -c "from msgpack import _packer, _unpacker"
5+
%PYTHON%\python.exe -c "from msgpack import _cmsgpack"
66
%PYTHON%\python.exe setup.py bdist_wheel
77
%PYTHON%\python.exe -m pytest -v test
88
SET EL=%ERRORLEVEL%

ci/runtests.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/bash
2+
set -ex
3+
${PYTHON} -VV
4+
${PYTHON} -m pip install setuptools wheel pytest
5+
${PYTHON} setup.py build_ext -if
6+
${PYTHON} -c "from msgpack import _cmsgpack"
7+
${PYTHON} setup.py bdist_wheel
8+
${PYTHON} -m pytest -v test

0 commit comments

Comments
 (0)
0