Skip to content

Commit dd475d6

Browse files
committed
use coverage package+add integration for branches
1 parent 29db4a0 commit dd475d6

3 files changed

Lines changed: 8 additions & 7 deletions

File tree

.github/workflows/build.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,17 @@ on:
44
push:
55
branches: [ master ]
66
pull_request:
7-
branches: [ master ]
7+
branches: [ '**' ]
88

99
jobs:
1010
build:
1111

1212
runs-on: ubuntu-latest
1313

1414
steps:
15-
- uses: actions/checkout@v2
15+
- uses: actions/checkout@master
1616
- name: Set up Python 3.7
17-
uses: actions/setup-python@v2
17+
uses: actions/setup-python@master
1818
with:
1919
python-version: 3.7
2020
- name: Install
@@ -26,4 +26,4 @@ jobs:
2626
run: |
2727
sh tests/run_basics.sh
2828
- name: Codecov
29-
uses: codecov/codecov-action@v1
29+
uses: codecov/codecov-action@v2

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ def read_package_variable(key):
3030
author='ESA FDL Europe Constellations Team',
3131
# author_email='',
3232
packages=find_packages(),
33-
install_requires=['numpy', 'matplotlib', 'torch>=1.5.1', 'pykep>=2.5', 'skyfield>=1.26', 'kessler', 'pandas'],
34-
extras_require={'dev': ['pytest', 'pytest-cov', 'pytest-xdist'],
33+
install_requires=['numpy', 'matplotlib', 'torch>=1.5.1', 'skyfield>=1.26', 'kessler', 'pandas'],
34+
extras_require={'dev': ['pytest', 'coverage', 'pytest-xdist'],
3535
'docs': ['sphinx==3.2.1', 'sphinx_rtd_theme==0.5.2', 'jupyter-sphinx==0.3.2', 'myst-nb==0.12.3']},
3636
# url='https://github.com/kessler/kessler',
3737
classifiers=['License :: OSI Approved :: BSD License', 'Programming Language :: Python :: 3'],

tests/run_basics.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
#!/usr/bin/env bash
2-
pytest -n auto -x -rA --cov=./ --cov-report xml
2+
coverage run -m pytest
3+
coverage xml

0 commit comments

Comments
 (0)