-
Notifications
You must be signed in to change notification settings - Fork 52
56 lines (54 loc) · 1.54 KB
/
test.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
name: Test on push or pull request
on:
push:
branches: [master]
pull_request:
workflow_dispatch:
jobs:
build_sdist:
name: Build source distribution
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v1
with:
python-version: 3.7
- name: Build source package
run: |
pip install build
python -m build --sdist .
- name: Upload source package
uses: actions/upload-artifact@v4
with:
name: distribution
path: dist/
run_tests:
name: "Run tests"
needs: [build_sdist]
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
max-parallel: 1 # tests interfere with each other if run in parallel
matrix:
# order matters - this setup minimizes the interference between jobs
python-version: [3.8, 3.9]
os: [ubuntu-latest, windows-latest, macOS-latest]
steps:
- uses: actions/checkout@v1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- uses: actions/download-artifact@v4
with:
name: distribution
path: dist/
- name: Install dependencies
shell: bash # enables file pattern matching on Windows
run: |
python -m pip install --upgrade pip
pip install nose
pip install dist/zeromq-pyre-*.tar.gz
- name: Test with nose
working-directory: tests
run: python -m nose -v --exe