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
environments/review-docs-poetr-x0u8vy/deployments/9023
Georg Krause 2022-01-13 10:48:47 +00:00
rodzic 850dc69091
commit 34bb75bb64
1 zmienionych plików z 18 dodań i 16 usunięć

Wyświetl plik

@ -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