Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion .github/workflows/code_changes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,13 @@ jobs:
run: uv pip install policyengine --system
- name: UV sync
run: uv sync
- name: Run tests
- name: Run tests with coverage
run: make test
env:
HUGGING_FACE_TOKEN: ${{ secrets.HUGGING_FACE_TOKEN }}
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
file: ./coverage.xml
fail_ci_if_error: false
verbose: true
8 changes: 7 additions & 1 deletion .github/workflows/pr_code_changes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,15 @@ jobs:
run: uv pip install policyengine --system
- name: UV sync
run: uv sync
- name: Run tests
- name: Run tests with coverage
run: make test
env:
HUGGING_FACE_TOKEN: ${{ secrets.HUGGING_FACE_TOKEN }}
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
file: ./coverage.xml
fail_ci_if_error: false
verbose: true
- name: Test documentation builds
run: make documentation
25 changes: 25 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,28 @@ policyengine_uk/calibration/*.h5
*.ipynb
!docs/**/*.ipynb
!uprating_growth_factors.csv

# Virtual environments
.venv/
venv/
env/
ENV/
.env
env.bak/
venv.bak/
.env*

# Coverage / testing
htmlcov/
.tox/
.nox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
*.py,cover
.hypothesis/
.pytest_cache/
cover/
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ format:

test:
policyengine-core test policyengine_uk/tests/policy -c policyengine_uk
pytest policyengine_uk/tests/ -v
pytest policyengine_uk/tests/ --cov=policyengine_uk --cov-report=xml --maxfail=0 -v

update-tests:
python policyengine_uk/data/economic_assumptions.py
Expand Down
5 changes: 5 additions & 0 deletions changelog_entry.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
- bump: minor
changes:
added:
- Codecov coverage.
- Expanded .gitignore.
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ dev = [
"furo<2023",
"tqdm",
"pytest",
"pytest-cov",
"setuptools",
"sphinx-argparse>=0.3.2,<1",
"sphinx-math-dollar>=1.2.1,<2",
Expand Down
Loading