File tree Expand file tree Collapse file tree 2 files changed +36
-11
lines changed Expand file tree Collapse file tree 2 files changed +36
-11
lines changed Original file line number Diff line number Diff line change 1
- name : test
1
+ name : ci
2
2
on :
3
3
push :
4
4
pull_request :
@@ -10,9 +10,24 @@ concurrency:
10
10
cancel-in-progress : true
11
11
12
12
env :
13
- PYTEST_ADDOPTS : ' -vv'
13
+ PYTEST_ADDOPTS : ' -vv --cov-append '
14
14
15
15
jobs :
16
+ lint :
17
+ runs-on : ubuntu-latest
18
+ steps :
19
+ - uses : actions/checkout@v3
20
+ - uses : actions/setup-python@v4
21
+ with :
22
+ cache : ' pip'
23
+ python-version : 3.11
24
+ - name : install dependencies
25
+ run : pip install tox tox-gh-actions
26
+ - name : checkqa
27
+ env :
28
+ TOXENV : ' checkqa,docs'
29
+ run : tox
30
+
16
31
test :
17
32
strategy :
18
33
fail-fast : false
34
49
EXTRACT : unzip
35
50
36
51
runs-on : ${{ matrix.os }}
37
-
38
- # Steps represent a sequence of tasks that will be executed as part of the job
39
52
steps :
40
53
- uses : actions/checkout@v3
41
54
- uses : actions/setup-python@v4
@@ -58,21 +71,27 @@ jobs:
58
71
run : echo "$(pwd)/${{ matrix.NVIM_BIN_PATH }}" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
59
72
60
73
- name : install dependencies
61
- run : |
62
- pip install . # Install from setup.py
63
- pip install -q pytest
74
+ run : pip install tox tox-gh-actions
64
75
65
76
- name : test
66
77
run : |
67
78
echo $PATH
68
79
which nvim
69
80
nvim --version
70
- python -m pytest
81
+ tox
82
+
83
+ - if : matrix.target == 'tests'
84
+ name : Run coverage report
85
+ run : |
86
+ pip install coverage
87
+ coverage report -m
88
+ coverage xml
71
89
72
- - uses : codecov/codecov-action@v3
73
- if : runner.os == 'macOS'
90
+ - if : matrix.target == 'tests'
91
+ uses : codecov/codecov-action@v3
74
92
with :
75
- verbose : true # optional (default = false)
93
+ file : coverage.xml
94
+ verbose : true
76
95
77
96
# TODO: tox, codecov steps from old travis workflow
78
97
#
Original file line number Diff line number Diff line change @@ -3,6 +3,12 @@ envlist =
3
3
py{310,311}-{asyncio,pyuv}-cov,pypy-cov
4
4
checkqa
5
5
6
+ [gh-actions]
7
+ python =
8
+ 3.10: py310
9
+ 3.11: py311
10
+ pypy3: pypy3
11
+
6
12
[testenv]
7
13
extras = test
8
14
deps =
You can’t perform that action at this time.
0 commit comments