Skip to content
Snippets Groups Projects

#355: Move the coverage and the badge generations to v3.9 test job

Merged #355: Move the coverage and the badge generations to v3.9 test job
Merged Moul requested to merge 355_cov_py39 into dev
1 file
+ 13
13
Compare changes
  • Side-by-side
  • Inline
+ 13
13
@@ -52,35 +52,35 @@ isort:
@@ -52,35 +52,35 @@ isort:
- poetry install
- poetry install
- poetry run pytest
- poetry run pytest
tests-3.6:
tests:3.6:
extends: .tests
extends: .tests
tags: [mille]
tags: [mille]
variables:
variables:
PYTHON_VERSION: "3.6"
PYTHON_VERSION: "3.6"
tests-3.7-coverage:
tests:3.7:
extends: .tests
extends: .tests
tags: [mille]
tags: [mille]
variables:
variables:
PYTHON_VERSION: "3.7"
PYTHON_VERSION: "3.7"
script:
- poetry install
- poetry run pytest --cov silkaj --cov-report html:cov_html
- poetry run coverage-badge -o cov_html/coverage.svg
artifacts:
paths:
- cov_html
expire_in: 2 days
tests-3.8:
tests:3.8:
extends: .tests
extends: .tests
tags: [redshift]
tags: [redshift]
tests-3.9:
tests:3.9:coverage:
extends: .tests
extends: .tests
tags: [redshift]
tags: [redshift]
variables:
variables:
PYTHON_VERSION: "3.9"
PYTHON_VERSION: "3.9"
 
script:
 
- poetry install
 
- poetry run pytest --cov silkaj --cov-report html:cov_html
 
- poetry run coverage-badge -o cov_html/coverage.svg
 
artifacts:
 
paths:
 
- cov_html
 
expire_in: 2 days
pypi_test:
pypi_test:
stage: publish
stage: publish
@@ -101,7 +101,7 @@ pypi:
@@ -101,7 +101,7 @@ pypi:
pages:
pages:
extends: .changes
extends: .changes
needs: [tests-3.7-coverage]
needs: ["tests:3.9:coverage"]
rules:
rules:
- if: $CI_COMMIT_BRANCH == "dev"
- if: $CI_COMMIT_BRANCH == "dev"
stage: coverage
stage: coverage
Loading