Run tests against all supported python versions
Python 3.10 is for now allowed to fail, since we not yet support it. This is to be done in %1.3.0, see #1653
This commit is contained in:
parent
850dc69091
commit
34bb75bb64
|
@ -105,10 +105,6 @@ black:
|
|||
- pip install black
|
||||
script:
|
||||
- black --check --diff .
|
||||
only:
|
||||
changes:
|
||||
- "**/*.py"
|
||||
- .gitlab-ci.yml
|
||||
|
||||
flake8:
|
||||
interruptible: true
|
||||
|
@ -124,9 +120,6 @@ flake8:
|
|||
key: "$CI_PROJECT_ID__flake8_pip_cache"
|
||||
paths:
|
||||
- "$PIP_CACHE_DIR"
|
||||
only:
|
||||
changes:
|
||||
- api/**/*
|
||||
|
||||
eslint:
|
||||
interruptible: true
|
||||
|
@ -142,17 +135,13 @@ eslint:
|
|||
key: "$CI_PROJECT_ID__eslint_npm_cache"
|
||||
paths:
|
||||
- front/node_modules
|
||||
only:
|
||||
changes:
|
||||
- front/**/*
|
||||
|
||||
test_api:
|
||||
.test_api:
|
||||
interruptible: true
|
||||
services:
|
||||
- postgres:11
|
||||
- redis:5
|
||||
stage: test
|
||||
image: $CI_REGISTRY/funkwhale/backend-test-docker:latest
|
||||
cache:
|
||||
key: "$CI_PROJECT_ID__pip_cache"
|
||||
paths:
|
||||
|
@ -166,8 +155,6 @@ test_api:
|
|||
only:
|
||||
refs:
|
||||
- branches
|
||||
changes:
|
||||
- api/**/*
|
||||
before_script:
|
||||
- cd api
|
||||
- pip3 install -r requirements/base.txt
|
||||
|
@ -183,6 +170,23 @@ test_api:
|
|||
junit: api/report.xml
|
||||
cobertura: api/coverage.xml
|
||||
|
||||
test_api_3.7:
|
||||
extends: .test_api
|
||||
image: $CI_REGISTRY/funkwhale/backend-test-docker:3.7
|
||||
|
||||
test_api_3.8:
|
||||
extends: .test_api
|
||||
image: $CI_REGISTRY/funkwhale/backend-test-docker:3.8
|
||||
|
||||
test_api_3.9:
|
||||
extends: .test_api
|
||||
image: $CI_REGISTRY/funkwhale/backend-test-docker:3.9
|
||||
|
||||
test_api_3.10:
|
||||
extends: .test_api
|
||||
image: $CI_REGISTRY/funkwhale/backend-test-docker:3.10
|
||||
allow_failure: true # We do not yet support python 3.10, see #1653
|
||||
|
||||
test_front:
|
||||
interruptible: true
|
||||
stage: test
|
||||
|
@ -192,8 +196,6 @@ test_front:
|
|||
only:
|
||||
refs:
|
||||
- branches
|
||||
changes:
|
||||
- front/**/*
|
||||
script:
|
||||
- yarn install --check-files
|
||||
- yarn test:unit
|
||||
|
|
Loading…
Reference in New Issue