File tree Expand file tree Collapse file tree 5 files changed +40
-28
lines changed Expand file tree Collapse file tree 5 files changed +40
-28
lines changed Original file line number Diff line number Diff line change
1
+ name : zxtools tests
2
+
3
+ on :
4
+ push :
5
+ branches : [master]
6
+ pull_request :
7
+ branches : [master]
8
+
9
+ jobs :
10
+ build :
11
+
12
+ runs-on : ubuntu-latest
13
+
14
+ strategy :
15
+ fail-fast : false
16
+ matrix :
17
+ python-version : [3.9, 3.12, 3.13]
18
+
19
+ steps :
20
+ - uses : actions/checkout@v3
21
+ - name : Set up Python ${{ matrix.python-version }}
22
+ uses : actions/setup-python@v4
23
+ with :
24
+ python-version : ${{ matrix.python-version }}
25
+ - name : Install dependencies
26
+ run : |
27
+ python -m pip install --upgrade pip
28
+ pip install setuptools pytest pytest-cov mock
29
+ pip install -e .
30
+ - name : Run tests
31
+ run : |
32
+ pytest --cov=zxtools --cov-report=term-missing
33
+ - name : Upload coverage to Codecov
34
+ run : bash <(curl -s https://codecov.io/bash)
35
+ if : success()
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 13
13
distclean : clean
14
14
15
15
coverage :
16
- coverage run --source zxtools setup.py test
17
- coverage report -m --fail-under=80
16
+ pytest --cov= zxtools --cov-report=term-missing
17
+ # coverage report -m --fail-under=80
18
18
19
19
lint :
20
20
pylint zxtools -f parseable -r n
Original file line number Diff line number Diff line change 2
2
Tools to manipulate ZX Spectrum files
3
3
=====================================
4
4
5
- .. image :: https://travis-ci.com/codeatcpp/zxtools.svg?branch=master
6
- :target: https://travis-ci.com/codeatcpp/zxtools
5
+
6
+ .. image :: https://github.com/jia3ep/zxtools/actions/workflows/python-package.yml/badge.svg
7
+ :target: https://github.com/jia3ep/zxtools/actions/workflows
7
8
8
9
.. image :: https://codecov.io/gh/codeatcpp/zxtools/branch/master/graph/badge.svg
9
10
:target: https://codecov.io/gh/codeatcpp/zxtools
Original file line number Diff line number Diff line change 30
30
url = 'http://www.codeatcpp.com' ,
31
31
license = 'BSD-3-Clause' ,
32
32
packages = find_packages (exclude = ('test' , 'docs' )),
33
- tests_require = ['mock' ],
34
33
extras_require = {
35
34
'test' : dev_requires ,
36
35
},
37
- test_suite = 'test' ,
38
36
classifiers = [
39
37
'Development Status :: 4 - Beta' ,
40
38
'Operating System :: OS Independent' ,
You can’t perform that action at this time.
0 commit comments