Skip to content

Commit

Permalink
add coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
jdtuck committed Nov 18, 2023
1 parent 6fad888 commit 1087219
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,14 @@ jobs:

steps:
- uses: actions/checkout@v3
- uses: codecov/codecov-action@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install flake8 pytest pytest-runner
python -m pip install flake8 pytest pytest-runner coverage
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Lint with flake8
run: |
Expand All @@ -34,3 +33,8 @@ jobs:
- name: Test with pytest
run: |
python setup.py pytest --addopts "test"
- name: Generate Report
run: |
coverage run -m unittest
- name: Upload Coverage to Codecov
uses: codecov/codecov-action@v3
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ python-dateutil
scipy
six
tornado
tqdm

0 comments on commit 1087219

Please sign in to comment.