-
Notifications
You must be signed in to change notification settings - Fork 29
60 lines (55 loc) · 1.44 KB
/
pythonapp.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
name: nptyping
on: [push]
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: [ '3.7', '3.8', '3.9', '3.10', '3.11' ]
os: [ ubuntu-latest, macOS-latest, windows-latest ]
name: Python ${{ matrix.python-version }} on ${{ matrix.os }}
steps:
- uses: actions/checkout@master
- name: Setup python
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
architecture: x64
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install invoke
invoke venv install
- name: Coverage
run: |
invoke coverage
invoke run --command="-m codecov"
qa:
runs-on: windows-latest
steps:
- uses: actions/checkout@master
- name: Setup python
uses: actions/setup-python@v1
with:
python-version: '3.10'
architecture: x64
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install invoke
invoke venv install
- name: Doctest
run: |
invoke doctest
- name: Pylint
run: |
invoke pylint
- name: Style
run: |
invoke format --check
report:
needs: test
runs-on: windows-latest
steps:
- name: Coverage Report
uses: codecov/codecov-action@v1