Skip to content

Commit ee53f4c

Browse files
ader1990alexpilotti
authored andcommitted
Added github workflow to test/build/publish wheel
The wheels for Py 3.6, 3.7, 3.8, 3.9 will be now published as an artifact for each pull request or commit.
1 parent c66e06c commit ee53f4c

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

.github/workflows/pymi-cd.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: PyMI CD
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
8+
runs-on: windows-latest
9+
strategy:
10+
max-parallel: 100
11+
matrix:
12+
python-version: [3.6, 3.7, 3.8, 3.9]
13+
14+
steps:
15+
- uses: actions/checkout@v1
16+
- name: Set up Python ${{ matrix.python-version }}
17+
uses: actions/setup-python@v1
18+
with:
19+
python-version: ${{ matrix.python-version }}
20+
- name: Test and build PyMI
21+
shell: cmd
22+
run: |
23+
SETLOCAL EnableDelayedExpansion
24+
pip install -r requirements.txt || exit /b
25+
pip install nose testtools wheel || exit /b
26+
pip install . || exit /b
27+
nosetests wmi
28+
python setup.py bdist_wheel
29+
- uses: actions/upload-artifact@v1
30+
with:
31+
name: pymi_wheel_py${{ matrix.python-version }}
32+
path: 'dist'

0 commit comments

Comments
 (0)