Newer
Older
POETRY_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pypoetry"
POETRY_VIRTUALENVS_IN_PROJECT: "true"
- ".cache/pypoetry"
- ".cache/pip"
- ".venv"
- lint
- tests
- docs
.install-deps-template: &install-deps
- curl -sSL https://install.python-poetry.org | python3 -
- export PATH="$HOME/.local/bin:$PATH"
.quality-template: &quality
<<: *install-deps
- "bash ./.ci/run-tests-for-ci.sh"
stage: tests
script: |
variables:
RELATE_LOCAL_TEST_SETTINGS: './local_settings_example.py'
script: poetry run ./.ci/run-mypy.sh
safety:
<<: *quality
Python 3 Expensive:
<<: *test
variables:
RL_CI_TEST: expensive
- git clone https://github.com/inducer/relate-sample
- cd relate-sample
- poetry run relate validate .
- poetry run relate test-code questions/autograded-python-example.yml
- poetry run relate expand-yaml flows/quiz-test.yml > /dev/null
variables:
RELATE_LOCAL_TEST_SETTINGS: './local_settings_example.py'
- poetry run bash ./doc/build-docs.sh