1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102
|
include:
- project: dau/ci/pyci
file: .gitlab-ci-template.yml
.local_scripts:
test:
# Freezing issues:
# https://pytest-cov.readthedocs.io/en/latest/subprocess-support.html
- python -m pip install --pre .[test]
- python -m pytest -v -ra .
test-billiard:
- python -m pip install --pre .[test]
- python -m pip install billiard
- python -m pytest -v -ra .
test-gevent:
- python -m pip install --pre .[test]
- python -m pip install gevent billiard
- python -m gevent.monkey --module pytest -v -ra .
variables:
WARNING1: "ignore::DeprecationWarning:mongomock.__version__" # Fix in https://github.com/mongomock/mongomock/pull/834
IGNORE_WARNINGS: "-W ${WARNING1}"
test-3.6:
extends: .test-3.6
script:
- !reference [.local_scripts, test]
variables:
PYTEST_WARNINGS: "-W error ${IGNORE_WARNINGS}"
test-3.8-win:
extends: .test-3.8-win
variables:
PYTEST_WARNINGS: "-W error ${IGNORE_WARNINGS}"
test-3.9:
extends: .test-3.9
script:
- !reference [.local_scripts, test]
variables:
PYTEST_WARNINGS: "-W error ${IGNORE_WARNINGS}"
test-3.9-billiard:
extends: .test-3.9
script:
- !reference [.local_scripts, test-billiard]
variables:
PYTEST_WARNINGS: "-W error ${IGNORE_WARNINGS}"
test-3.9-gevent:
extends: .test-3.9
script:
- !reference [.local_scripts, test-gevent]
variables:
PYTEST_WARNINGS: "-W error ${IGNORE_WARNINGS}"
build_sdist:
extends: .build_sdist
test_sdist-3.6:
extends: .test_sdist-3.6
variables:
PYTEST_WARNINGS: "-W error ${IGNORE_WARNINGS}"
test_sdist-3.7:
extends: .test_sdist-3.7
variables:
PYTEST_WARNINGS: "-W error ${IGNORE_WARNINGS}"
test_sdist-3.8-win:
extends: .test_sdist-3.8-win
variables:
PYTEST_WARNINGS: "-W error ${IGNORE_WARNINGS}"
test_sdist-3.9:
extends: .test_sdist-3.9
variables:
PYTEST_WARNINGS: "-W error ${IGNORE_WARNINGS}"
test_sdist-3.10:
extends: .test_sdist-3.10
variables:
PYTEST_WARNINGS: "-W error ${IGNORE_WARNINGS}"
test_sdist-3.11:
extends: .test_sdist-3.11
variables:
PYTEST_WARNINGS: "-W error ${IGNORE_WARNINGS}"
test_sdist-3.12:
extends: .test_sdist-3.12
variables:
PYTEST_WARNINGS: "-W error ${IGNORE_WARNINGS}"
build_doc:
extends: .build_doc
pages:
extends: .pages
assets:
extends: .assets
|