File tree Expand file tree Collapse file tree 6 files changed +42
-43
lines changed Expand file tree Collapse file tree 6 files changed +42
-43
lines changed Original file line number Diff line number Diff line change
1
+ name : CI
2
+
3
+ on : [push, pull_request]
4
+
5
+ jobs :
6
+
7
+ lint :
8
+ runs-on : ubuntu-latest
9
+ steps :
10
+ - uses : actions/checkout@v2
11
+ - name : Setup Python
12
+ uses : actions/setup-python@v1
13
+ with :
14
+ python-version : 3.8
15
+ - name : Install tox
16
+ run : python -m pip install tox
17
+ - name : Run linting
18
+ run : python -m tox -e lint
19
+
20
+ test :
21
+ runs-on : ubuntu-latest
22
+ strategy :
23
+ matrix :
24
+ python : [3.6, 3.7, 3.8]
25
+ steps :
26
+ - uses : actions/checkout@v2
27
+ - name : Setup Python
28
+ uses : actions/setup-python@v1
29
+ with :
30
+ python-version : ${{ matrix.python }}
31
+ - name : Install tox
32
+ run : python -m pip install tox
33
+ - name : Run tests
34
+ run : python -m tox -e py # Run tox using the version of Python in `PATH`
Load Diff This file was deleted.
Load Diff This file was deleted.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change 1
1
[tox]
2
- envlist = py{3.6,3.7},pep8
2
+ envlist = py{36,37},lint
3
3
skipsdist = True
4
4
5
5
[testenv]
6
- basepython =
7
- pep8: python3
8
- py3.6: python3.6
9
- py3.7: python3.7
10
-
6
+ description = run tests with {basepython}
11
7
setenv = VIRTUAL_ENV ={envdir}
12
8
usedevelop = True
13
9
install_command = pip install -U {opts} {packages}
14
- deps = -r{toxinidir}/test- requirements.txt
15
- -r{toxinidir}/docs- requirements.txt
10
+ deps = -r{toxinidir}/requirements/test .txt
11
+ -r{toxinidir}/requirements/test .txt
16
12
commands = find . -type f -name " *.pyc" -delete
17
13
whitelist_externals = find
18
14
rm
19
15
go
20
16
docker
21
- [testenv:pep8]
17
+ [testenv:lint]
18
+ basepython = python3.7
22
19
commands =
23
20
flake8
24
21
25
22
[testenv:venv]
26
23
commands = {posargs}
27
24
28
- [testenv:py3.6 ]
25
+ [testenv:py36 ]
29
26
commands = pytest -v -s --tb =long --cov =cloudevents {toxinidir}/cloudevents/tests
30
27
31
- [testenv:py3.7 ]
28
+ [testenv:py37 ]
32
29
commands = pytest -v -s --tb =long --cov =cloudevents {toxinidir}/cloudevents/tests
33
30
34
31
[flake8]
You can’t perform that action at this time.
0 commit comments