-
Notifications
You must be signed in to change notification settings - Fork 811
62 lines (49 loc) · 1.5 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: CI
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
test:
runs-on: windows-2019
strategy:
fail-fast: false
matrix:
python-version: ['3.5', '3.6', '3.7', '3.8']
architecture: ['x64', 'x86']
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
architecture: ${{ matrix.architecture }}
- name: Show runner information
run: |
python --version
pip --version
- name: Set Python user directory
run: echo "::set-env name=USER_DIR::$(python -c 'import os,site;print(os.path.dirname(site.USER_SITE))', end='')"
- name: Install Windows 8.1 SDK
run: choco install windows-sdk-8.1
- name: Install Windows 10 SDK for Python 3.5
if: matrix.python-version == '3.5'
run: choco install windows-sdk-10.0
- name: Build package
run: python setup.py build
- name: Install package
run: python setup.py install --user
- name: Run tests
run: python ${env:USER_DIR}\Scripts\pywin32_testall.py -no-user-interaction
- name: Build wheels
run: |
python setup.py bdist_wheel --skip-build
python setup.py bdist_wininst --skip-build --target-version=${{ matrix.python-version }}
- uses: actions/upload-artifact@v2
if: ${{ always() }}
with:
name: wheels
path: dist/*.whl