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
|
- pip install black
|
||||||
script:
|
script:
|
||||||
- black --check --diff .
|
- black --check --diff .
|
||||||
only:
|
|
||||||
changes:
|
|
||||||
- "**/*.py"
|
|
||||||
- .gitlab-ci.yml
|
|
||||||
|
|
||||||
flake8:
|
flake8:
|
||||||
interruptible: true
|
interruptible: true
|
||||||
|
@ -124,9 +120,6 @@ flake8:
|
||||||
key: "$CI_PROJECT_ID__flake8_pip_cache"
|
key: "$CI_PROJECT_ID__flake8_pip_cache"
|
||||||
paths:
|
paths:
|
||||||
- "$PIP_CACHE_DIR"
|
- "$PIP_CACHE_DIR"
|
||||||
only:
|
|
||||||
changes:
|
|
||||||
- api/**/*
|
|
||||||
|
|
||||||
eslint:
|
eslint:
|
||||||
interruptible: true
|
interruptible: true
|
||||||
|
@ -142,17 +135,13 @@ eslint:
|
||||||
key: "$CI_PROJECT_ID__eslint_npm_cache"
|
key: "$CI_PROJECT_ID__eslint_npm_cache"
|
||||||
paths:
|
paths:
|
||||||
- front/node_modules
|
- front/node_modules
|
||||||
only:
|
|
||||||
changes:
|
|
||||||
- front/**/*
|
|
||||||
|
|
||||||
test_api:
|
.test_api:
|
||||||
interruptible: true
|
interruptible: true
|
||||||
services:
|
services:
|
||||||
- postgres:11
|
- postgres:11
|
||||||
- redis:5
|
- redis:5
|
||||||
stage: test
|
stage: test
|
||||||
image: $CI_REGISTRY/funkwhale/backend-test-docker:latest
|
|
||||||
cache:
|
cache:
|
||||||
key: "$CI_PROJECT_ID__pip_cache"
|
key: "$CI_PROJECT_ID__pip_cache"
|
||||||
paths:
|
paths:
|
||||||
|
@ -166,8 +155,6 @@ test_api:
|
||||||
only:
|
only:
|
||||||
refs:
|
refs:
|
||||||
- branches
|
- branches
|
||||||
changes:
|
|
||||||
- api/**/*
|
|
||||||
before_script:
|
before_script:
|
||||||
- cd api
|
- cd api
|
||||||
- pip3 install -r requirements/base.txt
|
- pip3 install -r requirements/base.txt
|
||||||
|
@ -183,6 +170,23 @@ test_api:
|
||||||
junit: api/report.xml
|
junit: api/report.xml
|
||||||
cobertura: api/coverage.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:
|
test_front:
|
||||||
interruptible: true
|
interruptible: true
|
||||||
stage: test
|
stage: test
|
||||||
|
@ -192,8 +196,6 @@ test_front:
|
||||||
only:
|
only:
|
||||||
refs:
|
refs:
|
||||||
- branches
|
- branches
|
||||||
changes:
|
|
||||||
- front/**/*
|
|
||||||
script:
|
script:
|
||||||
- yarn install --check-files
|
- yarn install --check-files
|
||||||
- yarn test:unit
|
- yarn test:unit
|
||||||
|
|
Loading…
Reference in New Issue