This repository was archived by the owner on Nov 28, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 7 files changed +80
-295
lines changed Expand file tree Collapse file tree 7 files changed +80
-295
lines changed Original file line number Diff line number Diff line change
1
+ name : tests
2
+
3
+ on :
4
+ push :
5
+ branches : [ master ]
6
+ pull_request :
7
+ branches : [ master ]
8
+ type : [ "opened", "reopened", "synchronize" ]
9
+ schedule :
10
+ - cron : ' 0 12 * * 0' # run once a week on Sunday
11
+ jobs :
12
+ tests :
13
+ strategy :
14
+ matrix :
15
+ config :
16
+ # [Python version, tox env]
17
+ - ["3.8", "flake8"]
18
+ - ["2.7", "py27"]
19
+ - ["3.6", "py36"]
20
+ - ["3.7", "py37"]
21
+ - ["3.8", "py38"]
22
+ - ["3.8", "coverage"]
23
+ runs-on : ubuntu-latest
24
+ name : ${{ matrix.config[1] }}
25
+ steps :
26
+ - uses : actions/checkout@v2
27
+ - name : Set up Python
28
+ uses : actions/setup-python@v2
29
+ with :
30
+ python-version : ${{ matrix.config[0] }}
31
+ - name : Pip cache
32
+ uses : actions/cache@v2
33
+ with :
34
+ path : ~/.cache/pip
35
+ key : ${{ runner.os }}-pip-${{ hashFiles('setup.*', 'tox.ini') }}
36
+ restore-keys : |
37
+ ${{ runner.os }}-pip-
38
+ - name : Install dependencies
39
+ run : |
40
+ python -m pip install --upgrade pip
41
+ pip install tox
42
+ - name : Test
43
+ run : tox -e ${{ matrix.config[1] }}
44
+ - name : Coverage
45
+ if : matrix.config[1] == 'coverage'
46
+ run : |
47
+ pip install coveralls coverage-python-version
48
+ coveralls --service=github
49
+ env :
50
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
CHANGES
2
2
*******
3
3
4
- 0. 1 (unreleased)
5
- ================
4
+ 1.9.4- 1 (unreleased)
5
+ ====================
6
6
7
7
- Initial Release
8
8
9
- - Migrate to Github.
9
+ - Migrate to GitHub.
10
+
11
+ - Use GitHub actions as CI.
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
- __import__ ('pkg_resources' ).declare_namespace (__name__ )
1
+ __import__ ('pkg_resources' ).declare_namespace (__name__ ) # pragma: nocover
Original file line number Diff line number Diff line change 1
1
[tox]
2
2
envlist =
3
- py27,
4
- py38,
3
+ flake8,
4
+ py27,
5
+ py36,
6
+ py37,
7
+ py38,
8
+ coverage,
9
+ minversion = 1.6
5
10
6
11
[testenv]
12
+ usedevelop = True
13
+ extras = test
7
14
deps =
8
- py27: pytest < 5.0
9
- !py27: pytest
15
+ pytest
10
16
pytest-cov
11
- commands = py.test --doctest-glob =' *.rst' --cov js {posargs}
12
- usedevelop = True
17
+ commands = py.test --doctest-glob =' *.rst' []
18
+
19
+ [testenv:coverage]
20
+ deps =
21
+ pytest
22
+ pytest-cov
23
+ commands = py.test --doctest-glob =' *.rst' --cov js --cov-report =term []
24
+
25
+
26
+ [testenv:flake8]
27
+ basepython = python3
28
+ skip_install = true
29
+ deps = flake8
30
+ commands = flake8 js setup.py --doctests
You can’t perform that action at this time.
0 commit comments