Skip to content

Commit 413a6fe

Browse files
authored
Merge branch 'main' into test_pypi
2 parents acb6078 + c1ed8d7 commit 413a6fe

9 files changed

Lines changed: 364 additions & 313 deletions

File tree

.github/workflows/pytest.yaml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,28 +10,40 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- uses: actions/checkout@v6
13+
1314
- name: Set up Python
1415
uses: actions/setup-python@v6
1516
with:
1617
cache: 'pip'
1718
python-version: 3.x
1819
- name: Install dependencies and antsnormflows
20+
21+
- name: Clear Torch Inductor Cache
22+
run: rm -rf ~/.cache/torch/inductor/*
23+
24+
- name: Install dependencies
1925
run: |
26+
python -m pip install --upgrade pip
2027
pip install -r requirements.txt
21-
pip install pytest pytest-coverage
2228
pip install -e .[test]
29+
pip install pytest pytest-cov
30+
pip install torch --upgrade
31+
2332
- name: Test with pytest
2433
run: |
25-
pytest --cov
34+
python -m pytest --cov
35+
2636
- name: Creating coverage folder
2737
run: |
2838
mkdir -p coverage
39+
2940
- name: Coverage Badge
3041
uses: tj-actions/coverage-badge-py@v1.8
3142
with:
3243
output: coverage/coverage.svg
44+
3345
- name: Publish coverage report to coverage-badge branch
3446
uses: JamesIves/github-pages-deploy-action@v4
3547
with:
3648
branch: coverage-badge
37-
folder: coverage
49+
folder: coverage

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Issues = "https://github.com/ANTsX/ANTsNormalizingFlows/issues"
3030

3131
[project.optional-dependencies]
3232
# pip install -e .[test], .[dev], .[docs], .[examples]
33-
test = ["pytest>=8.0", "pytest-cov>=4.1", "hypothesis>=6.0"]
33+
test = ["pytest>=8.0", "pytest-cov>=4.1", "hypothesis>=6.0", "matplotlib"]
3434
dev = ["black>=24.0", "ruff>=0.6.0", "mypy>=1.8", "pre-commit>=3.6", "build>=1.2.1", "twine>=5.0"]
3535
docs = ["mkdocs>=1.5", "mkdocs-material>=9.5"]
3636

@@ -53,6 +53,7 @@ optional-dependencies.examples = { file = ["requirements_examples.txt"] }
5353
[tool.pytest.ini_options]
5454
addopts = "-ra -q --strict-markers"
5555
testpaths = ["tests"]
56+
pythonpath = ["."]
5657

5758
[tool.black]
5859
line-length = 100

0 commit comments

Comments
 (0)