Skip to content

Commit c34fe53

Browse files
authored
MAIN: Use official coveralls github action (#618)
* MAIN: Use official coveralls github action * rework pytest to generate coveralls xml file * rework installs to use pytest-cov * Update to use coverage project for lcov * renable conda_ci * update coverage.py for conda_ci.yml * update to nose module
1 parent 496fdea commit c34fe53

File tree

3 files changed

+14
-29
lines changed

3 files changed

+14
-29
lines changed

.github/workflows/conda_ci.yml

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -47,20 +47,12 @@ jobs:
4747
shell: bash -l {0}
4848
run: |
4949
flake8 --select F401, F405, E231 quantecon
50-
nosetests --with-coverage -a "!slow" --cover-package=quantecon
50+
coverage run -m nose -a "!slow"
51+
coverage lcov
5152
52-
- name: Coveralls Parallel (Linux)
53-
uses: AndreMiras/coveralls-python-action@develop
53+
- name: Coveralls
54+
uses: coverallsapp/github-action@master
5455
if: runner.os == 'Linux'
5556
with:
56-
flag-name: run-${{ matrix.test_number }}
57-
parallel: true
58-
59-
coveralls_finish:
60-
needs: tests
61-
runs-on: ubuntu-latest
62-
steps:
63-
- name: Coveralls Finished
64-
uses: AndreMiras/coveralls-python-action@develop
65-
with:
66-
parallel-finished: true
57+
github-token: ${{ secrets.GITHUB_TOKEN }}
58+
path-to-lcov: coverage.lcov

.github/workflows/test.yml

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
- name: Install dependencies
3939
run: |
4040
python -m pip install --upgrade pip
41-
pip install -U coverage numpy scipy pandas numba sympy ipython statsmodels flake8 pytest
41+
pip install -U numpy scipy pandas numba sympy ipython statsmodels flake8 pytest coverage
4242
python setup.py install
4343
4444
- name: flake8 Tests
@@ -47,20 +47,12 @@ jobs:
4747
4848
- name: Run Tests (pytest)
4949
run: |
50-
pytest quantecon
50+
coverage run -m pytest
51+
coverage lcov
5152
52-
- name: Coveralls Parallel
53-
uses: AndreMiras/coveralls-python-action@develop
53+
- name: Coveralls
54+
uses: coverallsapp/github-action@master
5455
if: runner.os == 'Linux'
5556
with:
56-
flag-name: run-${{ matrix.test_number }}
57-
parallel: true
58-
59-
coveralls_finish:
60-
needs: tests
61-
runs-on: ubuntu-latest
62-
steps:
63-
- name: Coveralls Finished
64-
uses: AndreMiras/coveralls-python-action@develop
65-
with:
66-
parallel-finished: true
57+
github-token: ${{ secrets.GITHUB_TOKEN }}
58+
path-to-lcov: coverage.lcov

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ quantecon.egg-info/
99
*.noseids
1010
*.coverage
1111
*.h5
12+
*.lcov
1213

1314
# Numba cache files
1415
*.nbc

0 commit comments

Comments
 (0)