blob: 7d59127d7fef1e7678dd7d39849c55991ea68aaf (
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
name: CI
on: [push, pull_request]
jobs:
package:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Set up Python 3.7
uses: actions/setup-python@v2
with:
python-version: 3.7
- name: Check packages
run: |
python3.7 -m pip install wheel twine rstcheck;
python3.7 setup.py sdist bdist_wheel;
rstcheck README.rst CHANGES.rst
python3.7 -m twine check dist/*
macOS:
runs-on: macos-latest
strategy:
fail-fast: false
matrix:
python-version: [2.7, 3.5, 3.6, 3.7, 3.8, 3.9-dev]
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Set Up Python 3.7 to run nox
uses: actions/setup-python@v2
with:
python-version: 3.7
- name: Set Up Python - ${{ matrix.python-version }}
if: matrix.python_version != '3.7'
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install Dependencies
run: |
python3.7 -m pip install --upgrade nox
- name: Run Tests
run: |
version=${{ matrix.python-version }}
NOX_SESSION=test-${version%-dev}
nox -s $NOX_SESSION --error-on-missing-interpreters
- name: Upload Coverage
uses: codecov/codecov-action@v1
with:
file: ./coverage.xml
flags: unittests
name: codecov-umbrella
yml: ./codecov.yml
fail_ci_if_error: true
|