Fix pipeline attempt (1)
This commit is contained in:
+9
-15
@@ -21,11 +21,9 @@ build:container:
|
||||
image: ubuntu:22.04
|
||||
before_script:
|
||||
- apt-get update -qq
|
||||
- apt-get install -y wget
|
||||
- wget -O- http://neuro.debian.net/lists/jammy.us-ca.full | tee /etc/apt/sources.list.d/neurodebian.sources.list
|
||||
- apt-key adv --recv-keys --keyserver hkps://keyserver.ubuntu.com 0xA5D32F012649A5A9
|
||||
- apt-get update -qq
|
||||
- apt-get install -y apptainer
|
||||
- apt-get install -y wget curl gpg
|
||||
- wget -O /tmp/apptainer.deb https://github.com/apptainer/apptainer/releases/download/v1.2.5/apptainer_1.2.5_amd64.deb
|
||||
- apt-get install -y /tmp/apptainer.deb
|
||||
- mkdir -p $APPTAINER_CACHE_DIR
|
||||
script:
|
||||
- echo "Building Apptainer container..."
|
||||
@@ -45,11 +43,9 @@ test:pytest:
|
||||
- build:container
|
||||
before_script:
|
||||
- apt-get update -qq
|
||||
- apt-get install -y wget
|
||||
- wget -O- http://neuro.debian.net/lists/jammy.us-ca.full | tee /etc/apt/sources.list.d/neurodebian.sources.list
|
||||
- apt-key adv --recv-keys --keyserver hkps://keyserver.ubuntu.com 0xA5D32F012649A5A9
|
||||
- apt-get update -qq
|
||||
- apt-get install -y apptainer
|
||||
- apt-get install -y wget curl gpg
|
||||
- wget -O /tmp/apptainer.deb https://github.com/apptainer/apptainer/releases/download/v1.2.5/apptainer_1.2.5_amd64.deb
|
||||
- apt-get install -y /tmp/apptainer.deb
|
||||
script:
|
||||
- echo "Running pytest inside container..."
|
||||
- apptainer exec $CONTAINER_IMAGE pytest /src/tests/ -v
|
||||
@@ -64,11 +60,9 @@ test:coverage:
|
||||
- build:container
|
||||
before_script:
|
||||
- apt-get update -qq
|
||||
- apt-get install -y wget
|
||||
- wget -O- http://neuro.debian.net/lists/jammy.us-ca.full | tee /etc/apt/sources.list.d/neurodebian.sources.list
|
||||
- apt-key adv --recv-keys --keyserver hkps://keyserver.ubuntu.com 0xA5D32F012649A5A9
|
||||
- apt-get update -qq
|
||||
- apt-get install -y apptainer
|
||||
- apt-get install -y wget curl gpg
|
||||
- wget -O /tmp/apptainer.deb https://github.com/apptainer/apptainer/releases/download/v1.2.5/apptainer_1.2.5_amd64.deb
|
||||
- apt-get install -y /tmp/apptainer.deb
|
||||
script:
|
||||
- echo "Running coverage analysis inside container..."
|
||||
- apptainer exec $CONTAINER_IMAGE pytest /src/tests/ --cov=/src --cov-report=xml --cov-report=term
|
||||
|
||||
Reference in New Issue
Block a user