blob: ec784ed51ea9bc81a1e82d8749a1a9abaf625f49 (
plain)
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
|
name: Build wheels
on: [push, pull_request]
jobs:
wheel:
name: ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [macos-latest, ubuntu-latest]
env:
CIBW_TEST_COMMAND: python -u -Wa {project}/psutil/tests/runner.py
CIBW_TEST_COMMAND_MACOS: LC_ALL='en_US.utf8' python -Wa {project}/psutil/tests/runner.py
CIBW_TEST_EXTRAS: test
steps:
- uses: actions/checkout@v1
- uses: actions/setup-python@v1
name: Install Python 3.7
with:
python-version: '3.7'
- name: Install Visual C++ for Python 2.7
if: startsWith(matrix.os, 'windows')
run: |
choco install vcpython27 -f -y
- name: Install cibuildwheel
run: pip install cibuildwheel==1.4.1
- name: Build wheels
run: cibuildwheel .
- name: Upload wheels
uses: actions/upload-artifact@v1
with:
name: wheels
path: wheelhouse
|