Skip to content
Snippets Groups Projects
Commit 8fe2cf15 authored by Valentin Emiya's avatar Valentin Emiya
Browse files

update ci.yml

parent ad29ab35
No related branches found
No related tags found
1 merge request!23.7 to 3.10 compatibility
Pipeline #14340 failed
...@@ -5,6 +5,18 @@ default: ...@@ -5,6 +5,18 @@ default:
paths: # https://pip.pypa.io/en/stable/topics/caching/ paths: # https://pip.pypa.io/en/stable/topics/caching/
- .cache/pip - .cache/pip
before_script: before_script:
stages:
- test
# Change pip's cache directory to be inside the project directory since we can
# only cache local items.
variables:
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
install_and_test_39:
image: python:3.9
stage: test
script:
- apt-get update - apt-get update
- apt-get install -y --no-install-recommends cmake - apt-get install -y --no-install-recommends cmake
- apt-get install -y --no-install-recommends gcc - apt-get install -y --no-install-recommends gcc
...@@ -34,18 +46,6 @@ default: ...@@ -34,18 +46,6 @@ default:
- source venv/bin/activate - source venv/bin/activate
- pip install --upgrade pip - pip install --upgrade pip
- pip install matplotlib numpy scipy six coverage pytest pytest-cov - pip install matplotlib numpy scipy six coverage pytest pytest-cov
stages:
- test
# Change pip's cache directory to be inside the project directory since we can
# only cache local items.
variables:
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
install_and_test_39:
image: python:3.9
stage: test
script:
- dpkg -L python3-pytest | xargs file | grep executable - dpkg -L python3-pytest | xargs file | grep executable
- pip3 install -e . --no-deps - pip3 install -e . --no-deps
- python3 -m pytest - python3 -m pytest
...@@ -66,7 +66,6 @@ ubuntu:X86_64: ...@@ -66,7 +66,6 @@ ubuntu:X86_64:
- conda activate py39 - conda activate py39
- pip3 install -e . --no-deps - pip3 install -e . --no-deps
- python3 -m pytest - python3 -m pytest
# - py.test-3
artifacts: artifacts:
when: always when: always
untracked: true untracked: true
...@@ -74,20 +73,22 @@ ubuntu:X86_64: ...@@ -74,20 +73,22 @@ ubuntu:X86_64:
- build - build
expire_in: 8d expire_in: 8d
# # Tests on i686 ubuntu # Tests on i686 ubuntu
# ubuntu:i686: ubuntu:i686:
# image: registry.gitlab.lis-lab.fr:5005/dev/ltfatpy/ubuntu:i686 image: registry.gitlab.lis-lab.fr:5005/dev/ltfatpy/ubuntu:i686
# tags: tags:
# - docker - docker
# script: script:
# - pip3 install -e . --no-deps - conda create -n py39 Python=3.9
# - py.test-3 - conda activate py39
# artifacts: - pip3 install -e . --no-deps
# when: always - python3 -m pytest
# untracked: true artifacts:
# paths: when: always
# - build untracked: true
# expire_in: 8d paths:
- build
expire_in: 8d
# doc template # doc template
.doc: &doc .doc: &doc
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment