-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #604 from Remi-Gau/fix/603
[MAINT] update linting config and CI
- Loading branch information
Showing
45 changed files
with
1,790 additions
and
1,710 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,27 @@ | ||
--- | ||
on: | ||
push: | ||
branches: | ||
- master | ||
push: | ||
branches: | ||
- master | ||
permissions: | ||
contents: write | ||
contents: write | ||
jobs: | ||
build_docs: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.10" | ||
- name: Install neurodocker | ||
run: python -m pip install --editable .[all] | ||
- name: build docs | ||
run: | | ||
make -C docs cli | ||
make -C docs list | ||
sphinx-build docs docs-build | ||
- name: Deploy | ||
uses: JamesIves/github-pages-deploy-action@v4 | ||
with: | ||
folder: docs-build # The folder the action should deploy. | ||
build_docs: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.10' | ||
- name: Install neurodocker | ||
run: python -m pip install --editable .[all] | ||
- name: build docs | ||
run: | | ||
make -C docs cli | ||
make -C docs list | ||
sphinx-build docs docs-build | ||
- name: Deploy | ||
uses: JamesIves/github-pages-deploy-action@v4 | ||
with: | ||
folder: docs-build # The folder the action should deploy. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,28 @@ | ||
--- | ||
name: Publish to pypi on Github release | ||
|
||
on: | ||
release: | ||
types: [published] | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
pypi-release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
pypi-release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.10" | ||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.10' | ||
|
||
- name: Install build & twine | ||
run: python -m pip install build twine | ||
- name: Install build & twine | ||
run: python -m pip install build twine | ||
|
||
- name: Publish to pypi | ||
run: | | ||
python -m build | ||
twine upload dist/* | ||
env: | ||
TWINE_USERNAME: __token__ | ||
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }} | ||
- name: Publish to pypi | ||
run: | | ||
python -m build | ||
twine upload dist/* | ||
env: | ||
TWINE_USERNAME: __token__ | ||
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,44 @@ | ||
--- | ||
name: CI | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
on: | ||
pull_request: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [master] | ||
|
||
jobs: | ||
run-tests: | ||
runs-on: ubuntu-22.04 | ||
strategy: | ||
matrix: | ||
python-version: ['3.12', '3.11', '3.10', '3.9', '3.8'] | ||
fail-fast: false | ||
steps: | ||
- name: Install Apptainer | ||
env: | ||
VERSION: 1.1.5 | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y wget | ||
wget https://github.com/apptainer/apptainer/releases/download/v${VERSION}/apptainer_${VERSION}_amd64.deb | ||
wget https://github.com/apptainer/apptainer/releases/download/v${VERSION}/apptainer-suid_${VERSION}_amd64.deb | ||
sudo apt-get install --yes ./apptainer* | ||
- name: Set Apptainer/Singularity environment variables | ||
run: | | ||
# Give reproenv the full path to apptainer, so it still works with `sudo`. | ||
echo REPROENV_APPTAINER_PROGRAM=apptainer >> $GITHUB_ENV | ||
echo APPTAINER_CACHEDIR=/dev/shm/$(whoami)/singularity >> $GITHUB_ENV | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install neurodocker | ||
run: python -m pip install --editable .[dev] | ||
- name: Run python tests | ||
run: pytest --numprocesses auto | ||
- name: Get code coverage | ||
run: codecov | ||
run-tests: | ||
runs-on: ubuntu-22.04 | ||
strategy: | ||
matrix: | ||
python-version: ['3.12', '3.11', '3.10', '3.9', '3.8'] | ||
fail-fast: false | ||
steps: | ||
- name: Install Apptainer | ||
env: | ||
VERSION: 1.1.5 | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y wget | ||
wget https://github.com/apptainer/apptainer/releases/download/v${VERSION}/apptainer_${VERSION}_amd64.deb | ||
wget https://github.com/apptainer/apptainer/releases/download/v${VERSION}/apptainer-suid_${VERSION}_amd64.deb | ||
sudo apt-get install --yes ./apptainer* | ||
- name: Set Apptainer/Singularity environment variables | ||
run: | | ||
# Give reproenv the full path to apptainer, so it still works with `sudo`. | ||
echo REPROENV_APPTAINER_PROGRAM=apptainer >> $GITHUB_ENV | ||
echo APPTAINER_CACHEDIR=/dev/shm/$(whoami)/singularity >> $GITHUB_ENV | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install neurodocker | ||
run: python -m pip install --editable .[dev] | ||
- name: Run python tests | ||
run: pytest --numprocesses auto | ||
- name: Get code coverage | ||
run: codecov |
Oops, something went wrong.