-
-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (44 loc) · 1.34 KB
/
build.yml
File metadata and controls
46 lines (44 loc) · 1.34 KB
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
name: Build
on: [push, pull_request]
jobs:
test:
runs-on: ${{ matrix.os }}
continue-on-error: ${{ matrix.experimental }}
env:
PYTEST_ADDOPTS: --color=yes
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ['3.5', '3.6', '3.7', '3.8', '3.9', 'pypy3']
experimental: [false]
include:
- os: ubuntu-18.04
python-version: '3.4'
experimental: false
- os: ubuntu-latest
python-version: '3.10-dev'
experimental: true
- os: macos-latest
python-version: '3.10-dev'
experimental: true
- os: windows-latest
python-version: '3.10-dev'
experimental: true
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }} on ${{ matrix.os }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools wheel
pip install .[test]
- name: Test
run: coverage run share/test.py
- name: Upload coverage report
if: ${{ matrix.os == 'ubuntu-latest' && matrix.python-version == '3.9' }}
run: |
pip install codecov
codecov