Skip to content

Commit

Permalink
fix testing workflow too?
Browse files Browse the repository at this point in the history
  • Loading branch information
akhanf committed Dec 3, 2024
1 parent e1ff47c commit 05a531d
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 118 deletions.
23 changes: 13 additions & 10 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: CI
name: Testing

on: [push, pull_request]

Expand All @@ -13,17 +13,20 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x' # Specify the Python version you want to use
python-version: '3.x'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install .
- name: Install uv
uses: astral-sh/setup-uv@v4

- name: "Set up Python"
uses: actions/setup-python@v5
with:
python-version-file: "pyproject.toml"

- name: Install the project
run: uv sync --all-extras --dev

- name: Run tests
run: |
python -m unittest discover -s . -p "test_*.py"
uv run python -m unittest discover -s tests -p "test_*.py"
- name: Run doctests
run: |
python -m doctest utils.py
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ fig = plot_hipp_surf(label_gii.format(density=density), space='canonical', densi

Plot hippocampal surface map.

This function plots a surface map of the hippocampus, which can be a label-hippdentate shape.gii, func.gii, or a Vx1 array
(where V is the number of vertices in the hippocampus and dentate). Any arguments that can be supplied to nilearn's plot_surf()
This function plots a surface map of the hippocampus, which can be a label-hippdentate shape.gii, func.gii, or a Vx1 array
(where V is the number of vertices in the hippocampus and dentate). Any arguments that can be supplied to nilearn's plot_surf()
can also be applied here, overriding the defaults set below.

###### Parameters
Expand Down
4 changes: 3 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,6 @@ dev = [
"pdoc>=15.0.0",
]


[build-system]
requires = ["setuptools>=61"]
build-backend = "setuptools.build_meta"
106 changes: 1 addition & 105 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 05a531d

Please sign in to comment.