File tree 3 files changed +28
-17
lines changed
3 files changed +28
-17
lines changed Original file line number Diff line number Diff line change 1
1
name : tests
2
2
3
- on : [push, pull_request]
3
+ on :
4
+ push :
5
+ branches :
6
+ - master
7
+ pull_request :
8
+ branches :
9
+ - master
4
10
5
11
jobs :
6
12
test :
36
42
uses : codecov/codecov-action@v1
37
43
38
44
deploy :
45
+ if : ${{ github.repository == 'napari/magicgui' && contains(github.ref, 'tags') }}
39
46
needs : test
40
47
runs-on : ubuntu-latest
41
- if : ${{ github.repository == 'napari/magicgui' && contains(github.ref, 'tags') }}
42
48
steps :
43
49
- uses : actions/checkout@v2
44
50
- name : Set up Python
Original file line number Diff line number Diff line change 1
1
repos :
2
2
- repo : https://github.com/pre-commit/pre-commit-hooks
3
- rev : v3.3 .0
3
+ rev : v3.4 .0
4
4
hooks :
5
5
- id : end-of-file-fixer
6
6
- id : trailing-whitespace
7
- - repo : https://github.com/timothycrosley /isort
7
+ - repo : https://github.com/PyCQA /isort
8
8
rev : 5.6.4
9
9
hooks :
10
10
- id : isort
Original file line number Diff line number Diff line change @@ -14,19 +14,6 @@ PLATFORM =
14
14
macos-latest: macos
15
15
windows-latest: windows
16
16
17
- [testenv:lint]
18
- deps =
19
- flake8
20
- flake8-docstrings
21
- black ==20.8b1
22
- commands =
23
- flake8 magicgui
24
- black --check magicgui
25
-
26
- [testenv:mypy]
27
- deps = mypy
28
- commands = mypy
29
-
30
17
[testenv]
31
18
platform =
32
19
macos: darwin
@@ -43,3 +30,21 @@ extras =
43
30
pyside: PySide2
44
31
commands =
45
32
pytest -v --cov-report =xml --cov =magicgui --basetemp ={envtmpdir} {posargs}
33
+
34
+
35
+ [testenv:lint]
36
+ skip_install =true
37
+ deps =
38
+ flake8 ==3.8.4
39
+ isort ==5.6.4
40
+ black ==20.8b1
41
+ flake8-docstrings
42
+ commands =
43
+ flake8 magicgui
44
+ black --check magicgui
45
+ isort --check magicgui
46
+
47
+ [testenv:mypy]
48
+ skip_install =true
49
+ deps = mypy
50
+ commands = mypy
You can’t perform that action at this time.
0 commit comments