Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
BIP
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
FSL
BIP
Commits
678ba29b
Commit
678ba29b
authored
2 years ago
by
Paul McCarthy
Browse files
Options
Downloads
Patches
Plain Diff
CI: Run unit tests via gitlab CI
parent
5cb213f3
No related branches found
No related tags found
1 merge request
!3
BIP configuration system
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.ci/unit_tests.sh
+16
-0
16 additions, 0 deletions
.ci/unit_tests.sh
.gitlab-ci.yml
+20
-0
20 additions, 0 deletions
.gitlab-ci.yml
with
36 additions
and
0 deletions
.ci/unit_tests.sh
0 → 100644
+
16
−
0
View file @
678ba29b
#!/usr/bin/env bash
conda create
\
-c
https://fsl.fmrib.ox.ac.uk/fsldownloads/fslconda/public/
\
-c
conda-forge
\
-p
./test.env
\
"python=
${
PYTHON_VERSION
}
"
\
pytest
\
coverage
\
pytest-cov
source
activate ./test.env
pip
install
--no-deps
-e
.
pytest
This diff is collapsed.
Click to expand it.
.gitlab-ci.yml
0 → 100644
+
20
−
0
View file @
678ba29b
stages
:
-
test
.test
:
&test_template
stage
:
test
image
:
continuumio/miniconda3
tags
:
-
docker
except
:
-
tags
-
merge_requests
script
:
-
bash ./.ci/unit_tests.sh
test:3.11
:
variables
:
PYTHON_VERSION
:
"
3.11"
<<
:
*test_template
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment