Skip to content

Commit 711af95

Browse files
authored
feat: include the simple implementation & update docs (#256)
* feat: include the simple implementation & update docs BREAKING CHANGE: v2 * chore: include a file listing on _impl * chore: retry downloading catalog if it fail * tests: include more tests
1 parent f20a1c9 commit 711af95

36 files changed

Lines changed: 2047 additions & 640125 deletions

.github/workflows/python-package.yml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ jobs:
1313

1414
strategy:
1515
matrix:
16-
python_version: ["3.10", "3.11", "3.12", "3.13"]
16+
python-version: ["3.10", "3.11", "3.12", "3.13"]
1717

1818
concurrency:
19-
group: ci-tests-${{ matrix.python_version }}-${{ github.ref }}
19+
group: ci-tests-${{ matrix.python-version }}-${{ github.ref }}
2020
cancel-in-progress: true
2121

2222
steps:
@@ -31,11 +31,6 @@ jobs:
3131
auto-update-conda: true
3232
conda-solver: libmamba
3333

34-
# - name: Run jupyterlab with PySUS
35-
# run: |
36-
# make run-jupyter-pysus
37-
# make test-jupyter-pysus ## takes too long
38-
3934
- name: Linting & Tests
4035
run: |
4136
pip install poetry poetry-plugin-export
@@ -47,6 +42,12 @@ jobs:
4742
pip install -r reqs.txt
4843
pip install -e ".[dbc]"
4944
50-
pre-commit run --all-files
45+
pre-commit run --files pysus/**/*
46+
47+
make test-pysus-with-coverage
5148
52-
make test-pysus
49+
- name: Upload coverage to Codecov
50+
uses: codecov/codecov-action@v5
51+
with:
52+
files: ./coverage.xml
53+
fail_ci_if_error: false

Makefile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,14 @@ test-jupyter-pysus: ## run pytest for notebooks inside jupyter container
5454
test-pysus: ## run tests quickly with the default Python
5555
poetry run pytest -vv pysus/tests/ --retries 3 --retry-delay 15
5656

57+
.PHONY: test-pysus-with-coverage
58+
test-pysus-with-coverage: ## run tests with coverage report
59+
poetry run pytest -vv pysus/tests/ --retries 3 --retry-delay 15 --cov=pysus --cov-report=xml:coverage.xml --cov-report=term-missing
60+
61+
.PHONY: lint
62+
lint:
63+
pre-commit run --all-files
64+
5765
# RELEASE
5866
# =======
5967

0 commit comments

Comments
 (0)