Skip to content

Commit 7b3fadd

Browse files
committed
fix actions
1 parent 7f0fdc2 commit 7b3fadd

File tree

3 files changed

+84
-59
lines changed

3 files changed

+84
-59
lines changed

.github/workflows/ci.yaml

+13-2
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,12 @@ jobs:
2525
with:
2626
python-version: ${{ matrix.python-version }}
2727

28+
# Clean python cache files
29+
- name: Clean cache files
30+
run: |
31+
find . -type f -name "*.pyc" -delete
32+
find . -type d -name "__pycache__" -delete
33+
rm -f .coverage* coverage.xml
2834
# Cache Poetry dependencies
2935
# - name: Cache dependencies
3036
# uses: actions/cache@v2
@@ -56,10 +62,15 @@ jobs:
5662
run: |
5763
poetry run python -c "import torch; print(torch.__version__); print('CUDA available:', torch.cuda.is_available())"
5864
65+
- name: Debug Coverage Config
66+
run: |
67+
cat pyproject.toml
68+
poetry run coverage debug config
69+
5970
- name: Run Tests with Coverage
6071
run: |
61-
poetry run coverage run -m pytest
62-
poetry run coverage xml -o coverage.xml
72+
poetry run coverage run --source=. -m pytest
73+
poetry run coverage xml -i -o coverage.xml
6374
env:
6475
COVERAGE_FILE: ".coverage.${{ matrix.python-version }}"
6576

poetry.lock

+65-55
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

+6-2
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ black = "^23.10.1"
4242
pre-commit = "^3.5.0"
4343
jupyter-book = "^1.0.0"
4444
pytest-cov = "^4.1.0"
45-
coverage = "^7.3.1"
45+
coverage = "^7.6.4"
4646
plotnine = "^0.13.6"
4747

4848

@@ -56,4 +56,8 @@ requires = ["poetry-core"]
5656
build-backend = "poetry.core.masonry.api"
5757

5858
[tool.coverage.run]
59-
relative_files = true
59+
relative_files = true
60+
source = [
61+
".",
62+
"/tmp"
63+
]

0 commit comments

Comments
 (0)