Skip to content

Commit

Permalink
Merge branch 'main' into mkdachi2_disable
Browse files Browse the repository at this point in the history
  • Loading branch information
adelavega committed Dec 22, 2023
2 parents 502a864 + 0e10f03 commit 9ce795f
Show file tree
Hide file tree
Showing 91 changed files with 9,634 additions and 2,041 deletions.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
contact_links:
- name: Usage question
url: https://neurostars.org/tag/nimare
url: https://neurostars.org/tags/c/software-support/234/nimare
about: Please ask questions about using NiMARE on NeuroStars.
2 changes: 1 addition & 1 deletion .github/workflows/linting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
fail-fast: false
matrix:
os: ["ubuntu-latest"]
python-version: ["3.7"]
python-version: ["3.8"]
name: Style check
defaults:
run:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.7'
python-version: '3.8'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand Down
57 changes: 45 additions & 12 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ jobs:
fail-fast: false
matrix:
os: ["ubuntu-latest", "macos-latest"]
python-version: ["3.6", "3.7", "3.8", "3.9", "3.10"]
python-version: ["3.8", "3.9", "3.10", "3.11"]

defaults:
run:
shell: bash
Expand All @@ -50,7 +51,7 @@ jobs:
python-version: ${{ matrix.python-version }}
- name: 'Install NiMARE'
shell: bash {0}
run: pip install -e .[tests,peaks2maps-cpu]
run: pip install -e .[tests,cbmr]
- name: 'Run tests'
shell: bash {0}
run: make unittest
Expand All @@ -70,7 +71,7 @@ jobs:
fail-fast: false
matrix:
os: ["ubuntu-latest"]
python-version: ["3.6"]
python-version: ["3.8"]
defaults:
run:
shell: bash
Expand All @@ -79,10 +80,10 @@ jobs:
- name: 'Set up python'
uses: actions/setup-python@v2
with:
python-version: 3.6
python-version: 3.8
- name: 'Install NiMARE'
shell: bash {0}
run: pip install -e .[minimum,tests,peaks2maps-cpu]
run: pip install -e .[minimum,tests,cbmr]
- name: 'Run tests'
shell: bash {0}
run: make unittest
Expand All @@ -102,7 +103,7 @@ jobs:
fail-fast: false
matrix:
os: ["ubuntu-latest"]
python-version: ["3.7"]
python-version: ["3.8"]
defaults:
run:
shell: bash
Expand All @@ -114,7 +115,7 @@ jobs:
python-version: ${{ matrix.python-version }}
- name: 'Install NiMARE'
shell: bash {0}
run: pip install -e .[tests,peaks2maps-cpu]
run: pip install -e .[tests,cbmr]
- name: 'Run tests'
shell: bash {0}
run: make test_performance_estimators
Expand All @@ -134,7 +135,7 @@ jobs:
fail-fast: false
matrix:
os: ["ubuntu-latest"]
python-version: ["3.7"]
python-version: ["3.8"]
defaults:
run:
shell: bash
Expand All @@ -146,7 +147,7 @@ jobs:
python-version: ${{ matrix.python-version }}
- name: 'Install NiMARE'
shell: bash {0}
run: pip install -e .[tests,peaks2maps-cpu]
run: pip install -e .[tests,cbmr]
- name: 'Run tests'
shell: bash {0}
run: make test_performance_correctors
Expand All @@ -166,7 +167,7 @@ jobs:
fail-fast: false
matrix:
os: ["ubuntu-latest"]
python-version: ["3.7"]
python-version: ["3.8"]
defaults:
run:
shell: bash
Expand All @@ -178,7 +179,7 @@ jobs:
python-version: ${{ matrix.python-version }}
- name: 'Install NiMARE'
shell: bash {0}
run: pip install -e .[tests,peaks2maps-cpu]
run: pip install -e .[tests,cbmr]
- name: 'Run tests'
shell: bash {0}
run: make test_performance_smoke
Expand All @@ -189,9 +190,41 @@ jobs:
path: coverage.xml
if: success()

test_cbmr_importerror:
name: CBMR ImportError tests
needs: check_skip
if: ${{ needs.check_skip.outputs.skip == 'false' }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ["ubuntu-latest"]
python-version: ["3.8"]
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v2
- name: 'Set up python'
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: 'Install NiMARE'
shell: bash {0}
run: pip install -e .[tests]
- name: 'Run tests'
shell: bash {0}
run: make test_cbmr_importerror
- name: Upload artifacts
uses: actions/upload-artifact@v2
with:
name: cbmr_importerror
path: coverage.xml
if: success()

upload_to_codecov:
name: Upload coverage
needs: [run_unit_tests,run_unit_tests_with_minimum_dependencies,test_performance_estimators,test_performance_correctors,test_performance_smoke]
needs: [run_unit_tests,run_unit_tests_with_minimum_dependencies,test_performance_estimators,test_performance_correctors,test_performance_smoke,test_cbmr_importerror]
runs-on: "ubuntu-latest"
steps:
- name: Checkout
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/update-changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: "Update Changelog"

on:
release:
types: [published]
types: [released]

jobs:
update:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ docs/auto_examples/
nimare/resources/data/neurovault-data/
nimare/tests/data/downloaded/
nimare/tests/resources/data/neurovault-data/
_readthedocs/
.pytest_cache

#
Expand Down
8 changes: 6 additions & 2 deletions .readthedocs.yml → .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,19 @@
# Required
version: 2

build:
os: "ubuntu-22.04"
tools:
python: "3.8"

# Build documentation in the docs/ directory with Sphinx
sphinx:
configuration: docs/conf.py

python:
version: 3.7
install:
- method: pip
path: .
extra_requirements:
- doc
system_packages: true
- cbmr
Loading

0 comments on commit 9ce795f

Please sign in to comment.