Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test to merge hugues caps dataset in maelys caps output #644

Draft
wants to merge 185 commits into
base: ms_caps_maps
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
185 commits
Select commit Hold shift + click to select a range
0f848c9
Improve logging (#342)
ravih18 Sep 28, 2022
427494b
Bump oauthlib from 3.2.0 to 3.2.1 (#344)
dependabot[bot] Sep 28, 2022
0616581
Bump protobuf from 3.19.4 to 3.19.5 (#347)
dependabot[bot] Sep 28, 2022
d51e36d
upgrade joblib to 1.2.0
NicolasGensollen Sep 30, 2022
cda90b2
Merge pull request #351 from NicolasGensollen/upgrade-joblib
camillebrianceau Sep 30, 2022
cec5a9b
Refactoring tsvtools (#338)
camillebrianceau Oct 6, 2022
e8d1fb2
Update TSVTools.md
camillebrianceau Oct 14, 2022
a61e8a7
Update TSVTools.md
camillebrianceau Oct 14, 2022
891e405
Update TSVTools.md
camillebrianceau Oct 17, 2022
a3a11ab
Update TSVTools.md
camillebrianceau Oct 17, 2022
b17d80b
Update QualityCheck.md
camillebrianceau Oct 18, 2022
d25ea0a
Update data ci (#350)
camillebrianceau Oct 28, 2022
a29e477
DOC: Add badge for monthly downloads
ghisvail Jan 3, 2023
769145b
Merge pull request #360 from aramis-lab/doc/readme-monthly-downloads
ghisvail Jan 3, 2023
40abd99
Migrate lock file to version 2
ghisvail Jan 6, 2023
4488188
MNT: Drop poetry from Conda environment
ghisvail Jan 10, 2023
69ec068
CI: Update PATH envvar
ghisvail Jan 10, 2023
1ada6fe
MNT: Migrate groups of dependencies
ghisvail Jan 10, 2023
21dd6f4
CI: Update readthedocs manifest
ghisvail Jan 10, 2023
5eb0fe3
Merge pull request #362 from ghisvail/mnt/poetry-1.3
camillebrianceau Jan 10, 2023
f45d901
Add path to locate pipx in GPU machine (#364)
mdiazmel Jan 11, 2023
4ab9dc6
bump certifi and pillow version (#365)
camillebrianceau Jan 13, 2023
c066800
add clinicadl installation with pipx
camillebrianceau Jan 27, 2023
823391b
Cb tsvtools finish (#374)
camillebrianceau Feb 13, 2023
ee6ba38
Cb qc darq (#373)
camillebrianceau Feb 15, 2023
986d37f
CI: Add workflow to publish to PyPI on release (#372)
ghisvail Feb 15, 2023
d005afd
Update CHANGELOG (#377)
camillebrianceau Feb 15, 2023
d93e435
Cb update pyproject (#378)
camillebrianceau Feb 15, 2023
b5bf033
Bump future from 0.18.2 to 0.18.3 (#376)
dependabot[bot] Feb 15, 2023
43f7056
CI: Use universal publish manifest (#379)
ghisvail Feb 15, 2023
41e20d6
CI: Add dependabot configuration (#380)
ghisvail Feb 16, 2023
f4dba7a
Bump actions/checkout from 2 to 3 (#385)
dependabot[bot] Feb 16, 2023
f5503af
Bump actions/setup-python from 2 to 4 (#386)
dependabot[bot] Feb 16, 2023
ae9c8f3
Bump werkzeug from 2.2.2 to 2.2.3 (#384)
dependabot[bot] Feb 16, 2023
26166b3
MNT: Remove publish commands from Makefile (#381)
ghisvail Feb 16, 2023
2939b4c
Remove "Deploy" stage from Jenkins pipeline (#387)
mdiazmel Feb 16, 2023
d961c9b
Bump werkzeug from 2.2.2 to 2.2.3 (#388)
dependabot[bot] Feb 16, 2023
2e79a0f
MNT: Declare change log as Markdown file (#389)
ghisvail Feb 16, 2023
c801bd2
maps manager check args before creating maps folder (#383)
camillebrianceau Feb 16, 2023
e2ff915
Improve performace tsvtools' tests (#390)
camillebrianceau Feb 27, 2023
9c17775
Improve tsvtools logger (#391)
camillebrianceau Mar 1, 2023
073ac48
Fix rdt build, use python 3.10 (#393)
mdiazmel Mar 3, 2023
5c14d5d
add option --output_dir in get-labels (#392)
camillebrianceau Mar 9, 2023
6894853
update docs (#394)
camillebrianceau Mar 9, 2023
9fdd694
change output_tsv option to argument (#396)
camillebrianceau Mar 22, 2023
76c1f60
Transition from os to pathlib (#395)
camillebrianceau Mar 22, 2023
54909eb
Add `--save_nifti` option for `interpret` (#398)
camillebrianceau Mar 23, 2023
deab237
Transition from os to pathlib part.2 (#407)
camillebrianceau Mar 29, 2023
b75430a
PyTorch Profiler (#400)
ncassereau Mar 30, 2023
61429d8
Cb generate hypometabolic (#397)
camillebrianceau Mar 30, 2023
5ad275d
Add extract for T2w FLAIR MRIs (#404)
sophieloiz Mar 30, 2023
dabd3a0
Add new architectures (#403)
sophieloiz Mar 30, 2023
4f14346
Cb pet qc (#361)
camillebrianceau Apr 3, 2023
1c8814d
Update QualityCheck.md
camillebrianceau Apr 4, 2023
82e0030
Update QualityCheck.md
camillebrianceau Apr 4, 2023
d5dad7e
change acq_label to tracer (#409)
camillebrianceau Apr 4, 2023
a0c73d4
cb_add_tests (#411)
camillebrianceau Apr 6, 2023
22b49c6
Cb release (#413)
camillebrianceau Apr 13, 2023
0a87abc
update tsvtools.md
camillebrianceau Apr 26, 2023
db68dce
update Tsvtools.md
camillebrianceau Apr 26, 2023
8c67cf9
Cb issues tsvtools (#422)
camillebrianceau May 15, 2023
0c319c0
fix json option bug (#423)
camillebrianceau May 15, 2023
4771ffa
change output directory for `tsvtools get-labels` (#415)
camillebrianceau May 15, 2023
412b151
add caps_directory option in get-labels (#416)
camillebrianceau May 15, 2023
6dccbf0
Fix missing mods parsing (#424)
14thibea May 15, 2023
15198d6
Update CHANGELOG and pyproject.toml for release (#425)
camillebrianceau May 15, 2023
5e7b955
Cb rh thesis2 (#420)
camillebrianceau May 24, 2023
fc8ded4
ensure image_path is a Path (#428)
14thibea May 24, 2023
66e4ce0
Clean code (#427)
camillebrianceau May 24, 2023
d6dbe03
Filter diagnoses in split manager (#429)
14thibea May 24, 2023
4e2c644
Bump pymdown-extensions from 9.10 to 10.0 (#426)
dependabot[bot] May 24, 2023
0be4ee0
Bump requests from 2.28.2 to 2.31.0 (#430)
dependabot[bot] May 24, 2023
237158c
Cb ssim 3 d (#433)
camillebrianceau May 26, 2023
1b71810
Add joblib to parallelize commands (#399)
camillebrianceau May 31, 2023
49f7f4c
add __init__.py when missing (#434)
camillebrianceau Jun 8, 2023
b81308c
Data augmentation with torchio (#417)
sophieloiz Jun 8, 2023
c846e12
Fix unexpected keyword argument 'split' in issue #438 (#439)
camillebrianceau Jun 8, 2023
eefe37c
Add generate motion using torchio (#419)
sophieloiz Jun 9, 2023
46e00de
Fix merged_tsv option in get_labels command (#437)
camillebrianceau Jun 9, 2023
195acbd
change is None to not (#444)
camillebrianceau Jun 9, 2023
dde6437
prepare release (#443)
camillebrianceau Jun 9, 2023
3a3b6fd
Update main.html
camillebrianceau Jun 9, 2023
fcda322
[INFRA TEST] Add unit tests to ClinicaDL (#446)
NicolasGensollen Jun 15, 2023
486da02
Create CITATION.cff (#451)
camillebrianceau Jun 15, 2023
939bd4b
Bump certifi from 2023.5.7 to 2023.7.22 (#458)
dependabot[bot] Jul 25, 2023
9d78d32
Automatic Mixed Precision (#401)
ncassereau Aug 7, 2023
2ceab5b
Cb fine tuning (#431)
camillebrianceau Aug 9, 2023
caea6d0
augmentation cli options (#467)
mselimata Aug 29, 2023
8153b36
Fix issues for adapt tool (#464)
sophieloiz Aug 29, 2023
5fd20fe
fix issue 469 (#470)
camillebrianceau Sep 6, 2023
8c95155
Execute SSIM on GPU (#465)
ncassereau Sep 7, 2023
4590803
Generate artifacts (#460)
camillebrianceau Sep 8, 2023
bbb1954
Bump actions/checkout from 3 to 4 (#473)
dependabot[bot] Sep 11, 2023
d0c7bc4
Cb wandb (#453)
camillebrianceau Sep 12, 2023
8379d24
Cb issue 471 (#475)
camillebrianceau Sep 12, 2023
a1464c5
Prepare next release (1.5.0) (#474)
camillebrianceau Sep 12, 2023
1672205
Distributed Data Parallelism (#402)
ncassereau Sep 21, 2023
55af05e
Fix retrocompatibility pb with maps.json (#479)
camillebrianceau Sep 21, 2023
7b68885
Add carbon emissions tracker callback (#477)
camillebrianceau Sep 22, 2023
ccd246f
Bump urllib3 from 2.0.5 to 2.0.6 (#486)
dependabot[bot] Oct 3, 2023
c71e90e
Sl dart ssda (#485)
sophieloiz Oct 6, 2023
b2f145d
Prepare next release (1.5.1) (#484)
camillebrianceau Oct 7, 2023
641275d
MNT: Bump gitpython from 3.1.36 to 3.1.37 (#490)
dependabot[bot] Oct 11, 2023
67d4047
Bump urllib3 from 2.0.6 to 2.0.7 (#495)
dependabot[bot] Oct 18, 2023
ce15fb8
solve issue #491 (#492)
camillebrianceau Oct 24, 2023
9be7d97
Bump werkzeug from 2.3.7 to 3.0.1 (#496)
dependabot[bot] Oct 31, 2023
dac75d5
fix adapt bug (#498)
camillebrianceau Nov 10, 2023
6d4c162
Update index.md
camillebrianceau Nov 14, 2023
7eb1e87
Bump mlflow from 2.7.1 to 2.8.1 (#500)
dependabot[bot] Nov 16, 2023
670575c
Bump pyarrow from 13.0.0 to 14.0.1 (#501)
dependabot[bot] Nov 17, 2023
e4bdb9b
fix typos (#503)
NicolasGensollen Nov 30, 2023
9c9dd9c
Update Generate.md
camillebrianceau Dec 5, 2023
fabfcbb
Bump actions/setup-python from 4 to 5
dependabot[bot] Dec 11, 2023
a984590
Merge pull request #508 from aramis-lab/dependabot/github_actions/act…
NicolasGensollen Dec 11, 2023
d492b19
try to update to python 3.11.x (#504)
camillebrianceau Jan 15, 2024
e75c0dd
Bump mlflow from 2.8.1 to 2.9.2 (#511)
dependabot[bot] Jan 15, 2024
8ebd207
Add missing model methods (#499)
camillebrianceau Jan 18, 2024
e11d60d
minor changes (#505)
camillebrianceau Jan 18, 2024
2d5c33a
Add option to save model for each epochs (#507)
camillebrianceau Jan 19, 2024
a663ff6
Bump pillow from 10.1.0 to 10.2.0 (#519)
dependabot[bot] Jan 23, 2024
46ffd28
Bump jinja2 from 3.1.2 to 3.1.3 (#514)
dependabot[bot] Jan 25, 2024
7798dd0
add option to skip data leakage check (#523)
camillebrianceau Feb 2, 2024
968969b
Solve issue: Running predict with --overwrite delete the results on a…
camillebrianceau Feb 8, 2024
d161753
Add option for adaptive learning rate (#520)
camillebrianceau Feb 8, 2024
06dd001
Remove clinica dependency (#525)
camillebrianceau Feb 13, 2024
bc4d3a6
Extract tensor from BIDS (#521)
camillebrianceau Feb 13, 2024
d624e61
ADD modality in clinicaDL (prepare-data) (#518)
camillebrianceau Feb 14, 2024
51d3175
Add others callbacks (#497)
camillebrianceau Feb 15, 2024
972e94d
hugging face (#468)
camillebrianceau Feb 15, 2024
00ea07c
test sofiene ci pull request copy (#528)
camillebrianceau Feb 16, 2024
352c293
resolve issue on predict (#529)
camillebrianceau Feb 16, 2024
9679b41
Update CHANGELOG for release 1.6.0 (#526)
camillebrianceau Feb 16, 2024
c6177e4
pyproject release (#530)
camillebrianceau Feb 16, 2024
ecccf7f
Use `setdefault()` method instead of looping over default dict
thibaultdvx Mar 5, 2024
e447aa8
Merge pull request #534 from aramis-lab/533-use-setdefault-method-ins…
NicolasGensollen Mar 5, 2024
a85fc90
copyright update (#536)
thibaultdvx Mar 5, 2024
ff2f892
Use parent or parents attributes of Pathlib Path object instead of ch…
thibaultdvx Mar 5, 2024
cd475b6
[INFRA] Use python 3.11 in the readthedocs workflow (#541)
NicolasGensollen Mar 19, 2024
22519ff
Solve CI pb in random search tests (#540)
camillebrianceau Mar 19, 2024
076863c
update isort (#542)
NicolasGensollen Mar 19, 2024
b400acc
fix typeerror issue and improve type hints
thibaultdvx Mar 19, 2024
f0e7984
update type hint
thibaultdvx Mar 19, 2024
36887dc
replace with f-string
thibaultdvx Mar 19, 2024
8dd81d9
Merge pull request #544 from thibaultdvx/fix-typeerror-543
thibaultdvx Mar 19, 2024
5b91faf
[INFRA] Use ruff instead of black and use codespell (#546)
NicolasGensollen Mar 19, 2024
93d0c34
[INFRA] Remove black and isort from dependencies (#549)
NicolasGensollen Mar 21, 2024
1d789af
change 2 digits session labels to 3 digits (#550)
thibaultdvx Mar 22, 2024
a8f2ea5
fix BIDS file format for pet (#545)
thibaultdvx Mar 22, 2024
6bfaccd
Add option to use longitudinal data for validation (#483)
camillebrianceau Apr 3, 2024
ac5e978
Bump pillow from 10.2.0 to 10.3.0 (#551)
dependabot[bot] Apr 4, 2024
715665d
test to correct sorting with 2 digit (#547)
camillebrianceau Apr 4, 2024
f01db6d
patch interpret save nifit (#552)
camillebrianceau Apr 4, 2024
3793229
Fully Sharded Data Parallel (#489)
ncassereau Apr 5, 2024
bdddecf
ClinicaDL cleaning (#517)
camillebrianceau Apr 5, 2024
eb08045
prepare release 1.6.1 (#553)
camillebrianceau Apr 5, 2024
36aadb0
Bump idna from 3.6 to 3.7 (#554)
dependabot[bot] Apr 12, 2024
a9a23b9
Bump sqlparse from 0.4.4 to 0.5.0 (#558)
dependabot[bot] Apr 22, 2024
36eb46f
Bump tqdm from 4.66.1 to 4.66.3 (#569)
dependabot[bot] May 4, 2024
fa7f0f1
Bump werkzeug from 3.0.1 to 3.0.3 (#570)
dependabot[bot] May 7, 2024
a05fcd5
Bump jinja2 from 3.1.3 to 3.1.4 (#571)
dependabot[bot] May 7, 2024
b2fc3e6
Bump mlflow from 2.10.1 to 2.12.1 (#575)
dependabot[bot] May 17, 2024
495d5b9
Bump gunicorn from 21.2.0 to 22.0.0 (#576)
dependabot[bot] May 17, 2024
bdd102a
Bump requests from 2.31.0 to 2.32.0 (#578)
dependabot[bot] May 21, 2024
beccd4c
[CI] Run tests through GitHub Actions (#573)
NicolasGensollen May 22, 2024
2861e9d
[CI] Skip tests when PR is in draft mode (#592)
NicolasGensollen May 23, 2024
f5de251
[CI] Test train workflow on GPU machine (#590)
NicolasGensollen May 23, 2024
69b3538
[CI] Port remaining GPU tests to GitHub Actions (#593)
NicolasGensollen May 23, 2024
c9d9252
[CI] Remove GPU pipeline from Jenkinsfile (#594)
NicolasGensollen May 24, 2024
753f04e
[CI] Port remaining non GPU tests to GitHub Actions (#581)
NicolasGensollen May 24, 2024
c424d77
[CI] Remove jenkins related things (#595)
NicolasGensollen May 24, 2024
52d7561
Add flags to run CI tests locally (#596)
thibaultdvx May 30, 2024
39d22fd
[CI] Remove duplicated verbose flag in test pipelines (#598)
NicolasGensollen May 30, 2024
571662c
[DOC] Update the Python version used for creating the conda environme…
NicolasGensollen May 30, 2024
d54d59c
Flag for local tests (#608)
thibaultdvx May 31, 2024
f20e7fb
Update quality_check.py (#609)
HuguesRoy Jun 4, 2024
f6f382a
Fix issue in compare_folders (#610)
thibaultdvx Jun 4, 2024
52f9492
[INFRA] Update the Makefile `check.lock` target (#603)
NicolasGensollen Jun 4, 2024
996cdd5
[CI] Run unit tests and linter on refactoring branch (#618)
NicolasGensollen Jun 7, 2024
d0d5cd2
Trigger tests when undrafted (#623)
thibaultdvx Jun 12, 2024
dca3802
Bump urllib3 from 1.26.18 to 1.26.19 (#625)
dependabot[bot] Jun 18, 2024
b8d402b
Bump certifi from 2024.2.2 to 2024.7.4 (#634)
dependabot[bot] Jul 8, 2024
6dc2956
Bump zipp from 3.17.0 to 3.19.1 (#635)
dependabot[bot] Jul 10, 2024
b30aac8
Bump setuptools from 69.0.3 to 70.0.0 (#636)
dependabot[bot] Jul 16, 2024
f6d3f25
Bump sentry-sdk from 1.40.1 to 2.8.0 (#638)
dependabot[bot] Jul 19, 2024
e499fe8
HR caps dataset for mood (#642)
camillebrianceau Jul 31, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .github/dependabot.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
version: 2

updates:
- package-ecosystem: github-actions
directory: /
schedule:
interval: weekly
27 changes: 11 additions & 16 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
@@ -1,25 +1,20 @@
name: 'Lint codebase'

on:
pull_request:
branches:
- dev
branches: [ "dev", "refactoring" ]
push:
branches:
- dev
branches: [ "dev", "refactoring" ]

permissions:
contents: read

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.8'
- name: Install environment
run: |
python -m ensurepip
python -m pip install poetry
make env
- name: Lint code with black
run: make lint.black
- name: Lint code with isort
run: make lint.isort
python-version: '3.x'
- uses: pre-commit/[email protected]
27 changes: 27 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: publish

on:
release:
types: [ published ]

permissions:
contents: read

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Build distribution
run: pipx run build
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}
29 changes: 29 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Test

on:
push:
branches: ["dev", "refactoring"]
pull_request:
branches: ["dev", "refactoring"]

permissions:
contents: read

jobs:
test:
name: Test on ${{ matrix.os }} with Python ${{ matrix.python-version }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
python-version: ['3.8', '3.9', '3.10', '3.11']
steps:
- uses: actions/checkout@v4
- uses: snok/install-poetry@v1
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: poetry
- name: Run unit tests
run: make test
49 changes: 49 additions & 0 deletions .github/workflows/test_cli.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: CLI Tests

on:
push:
branches: ["dev", "refactoring"]
pull_request:
branches: ["dev", "refactoring"]
types: [opened, synchronize, reopened, ready_for_review]

permissions:
contents: read

concurrency:
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'
cancel-in-progress: true

env:
POETRY_VERSION: '1.8.3'
PYTHON_VERSION: '3.11'

jobs:
test-cli:
if: github.event.pull_request.draft == false
runs-on:
- self-hosted
- Linux
- ubuntu
- cpu
steps:
- uses: actions/checkout@v4
- uses: snok/install-poetry@v1
with:
version: ${{ env.POETRY_VERSION }}
virtualenvs-create: false
- uses: actions/setup-python@v5
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Run CLI tests
run: |
source /builds/miniconda3/etc/profile.d/conda.sh
make env.conda
conda activate "${{ github.workspace }}"/env
make install
cd tests
poetry run pytest \
--junitxml=./test-reports/test_cli_report.xml \
--disable-warnings \
--verbose \
test_cli.py
54 changes: 54 additions & 0 deletions .github/workflows/test_generate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: Generate Tests

on:
push:
branches: ["dev", "refactoring"]
pull_request:
branches: ["dev", "refactoring"]
types: [opened, synchronize, reopened, ready_for_review]

permissions:
contents: read

concurrency:
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'
cancel-in-progress: true

env:
POETRY_VERSION: '1.8.3'
PYTHON_VERSION: '3.11'

jobs:
test-generate:
if: github.event.pull_request.draft == false
runs-on:
- self-hosted
- Linux
- ubuntu
- cpu
steps:
- uses: actions/checkout@v4
- uses: snok/install-poetry@v1
with:
version: ${{ env.POETRY_VERSION }}
virtualenvs-create: false
- uses: actions/setup-python@v5
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Run tests for generate task
run: |
source /builds/miniconda3/etc/profile.d/conda.sh
make env.conda
conda activate "${{ github.workspace }}"/env
make install
cd tests
poetry run pytest \
--junitxml=./test-reports/test_generate_report.xml \
--disable-warnings \
--verbose \
--basetemp=$HOME/tmp/generate \
--input_data_directory=/mnt/data/data_ci \
test_generate.py
- name: Cleaning
run: |
rm -rf $HOME/tmp/generate
54 changes: 54 additions & 0 deletions .github/workflows/test_interpret.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: Interpretation Tests (GPU)

on:
push:
branches: ["dev", "refactoring"]
pull_request:
branches: ["dev", "refactoring"]
types: [opened, synchronize, reopened, ready_for_review]

permissions:
contents: read

concurrency:
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'
cancel-in-progress: true

env:
POETRY_VERSION: '1.8.3'
PYTHON_VERSION: '3.11'

jobs:
test-interpret-gpu:
if: github.event.pull_request.draft == false
runs-on:
- self-hosted
- Linux
- ubuntu
- gpu
steps:
- uses: actions/checkout@v4
- uses: snok/install-poetry@v1
with:
version: ${{ env.POETRY_VERSION }}
virtualenvs-create: false
- uses: actions/setup-python@v5
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Run tests for Interpret task on GPU
run: |
source "${HOME}/miniconda3/etc/profile.d/conda.sh"
make env.conda
conda activate "${{ github.workspace }}"/env
make install
cd tests
poetry run pytest \
--junitxml=./test-reports/test_interpret_report.xml \
--disable-warnings \
--verbose \
--basetemp=$HOME/actions_runner_workdir/interpret \
--input_data_directory=/mnt/data/clinicadl_data_ci/data_ci \
test_interpret.py
- name: Cleaning
run: |
rm -rf $HOME/actions_runner_workdir/interpret/*
54 changes: 54 additions & 0 deletions .github/workflows/test_predict.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: Predict Tests

on:
push:
branches: ["dev", "refactoring"]
pull_request:
branches: ["dev", "refactoring"]
types: [opened, synchronize, reopened, ready_for_review]

permissions:
contents: read

concurrency:
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'
cancel-in-progress: true

env:
POETRY_VERSION: '1.8.3'
PYTHON_VERSION: '3.11'

jobs:
test-predict:
if: github.event.pull_request.draft == false
runs-on:
- self-hosted
- Linux
- ubuntu
- cpu
steps:
- uses: actions/checkout@v4
- uses: snok/install-poetry@v1
with:
version: ${{ env.POETRY_VERSION }}
virtualenvs-create: false
- uses: actions/setup-python@v5
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Run tests for predict task
run: |
source /builds/miniconda3/etc/profile.d/conda.sh
make env.conda
conda activate "${{ github.workspace }}"/env
make install
cd tests
poetry run pytest \
--junitxml=./test-reports/test_predict_report.xml \
--disable-warnings \
--verbose \
--basetemp=$HOME/tmp/predict \
--input_data_directory=/mnt/data/data_ci \
test_predict.py
- name: Cleaning
run: |
rm -rf $HOME/tmp/predict/*
54 changes: 54 additions & 0 deletions .github/workflows/test_prepare_data.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: Prepare data Tests

on:
push:
branches: ["dev", "refactoring"]
pull_request:
branches: ["dev", "refactoring"]
types: [opened, synchronize, reopened, ready_for_review]

permissions:
contents: read

concurrency:
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'
cancel-in-progress: true

env:
POETRY_VERSION: '1.8.3'
PYTHON_VERSION: '3.11'

jobs:
test-prepare-data:
if: github.event.pull_request.draft == false
runs-on:
- self-hosted
- Linux
- ubuntu
- cpu
steps:
- uses: actions/checkout@v4
- uses: snok/install-poetry@v1
with:
version: ${{ env.POETRY_VERSION }}
virtualenvs-create: false
- uses: actions/setup-python@v5
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Run tests for prepare data task
run: |
source /builds/miniconda3/etc/profile.d/conda.sh
make env.conda
conda activate "${{ github.workspace }}"/env
make install
cd tests
poetry run pytest \
--junitxml=./test-reports/test_prepare_data_report.xml \
--disable-warnings \
--verbose \
--basetemp=$HOME/tmp/prepare_data \
--input_data_directory=/mnt/data/data_ci \
test_prepare_data.py
- name: Cleaning
run: |
rm -rf $HOME/tmp/prepare_data/*
Loading