Skip to content

Commit

Permalink
various
Browse files Browse the repository at this point in the history
  • Loading branch information
sr-murthy committed Feb 17, 2024
1 parent ee3782c commit 1563f65
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 7 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,19 @@ jobs:
path: ${{ steps.set_variables.outputs.PIP_CACHE }}
key: ${{ runner.os }}-pip-${{ steps.set_variables.outputs.PY }}

- name: Run tests + Measure coverage
- name: Run docstring tests
run: |
pip install -r requirements_test.txt
make test_units
make test_docstrings
- name: Run docstring tests
- name: Run tests + Measure coverage
run: |
pip install -r requirements_test.txt
make test_docstrings
make test_units
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage.xml
flags: unittests
7 changes: 4 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,12 @@ version_extract:
echo "$(PACKAGE_VERSION)"

# Running tests
test_docstrings: clean
doctests: clean
@echo "\n$(PACKAGE_NAME)[$(BRANCH)@$(HEAD)]: Running doctests in all core libraries\n"
cd "$(PROJECT_ROOT)" && \
python -m doctest --verbose src/continuedfractions/*.py

test_units: clean
unittests: clean
@echo "\n$(PACKAGE_NAME)[$(BRANCH)@$(HEAD)]: Running package unit tests + measuring coverage\n"
cd "$(PROJECT_ROOT)" && \
python -m \
Expand All @@ -51,7 +51,8 @@ test_units: clean
--code-highlight=yes \
--color=yes \
--cov=src \
--cov-report=term-missing:skip-covered \
--cov-config=pyproject.toml \
--cov-report=xml \
--dist worksteal \
--numprocesses=auto \
--tb=native \
Expand Down

0 comments on commit 1563f65

Please sign in to comment.