mirror of
https://framagit.org/framasoft/framaspace/argos.git
synced 2025-04-28 18:02:41 +02:00
65 lines
925 B
YAML
65 lines
925 B
YAML
image: python:3.11
|
|
|
|
stages:
|
|
- install
|
|
- test
|
|
- deploy
|
|
|
|
default:
|
|
cache: &global_cache
|
|
key: "$CI_COMMIT_SHA"
|
|
paths:
|
|
- venv/
|
|
|
|
.pull-cache: &pull_cache
|
|
cache:
|
|
<<: *global_cache
|
|
policy: pull
|
|
|
|
install:
|
|
stage: install
|
|
script:
|
|
- make venv
|
|
- make develop
|
|
cache:
|
|
<<: *global_cache
|
|
policy: push
|
|
|
|
pytest:
|
|
<<: *pull_cache
|
|
stage: test
|
|
script:
|
|
- make test
|
|
|
|
djlint:
|
|
<<: *pull_cache
|
|
stage: test
|
|
script:
|
|
- make djlint
|
|
|
|
pylint:
|
|
<<: *pull_cache
|
|
stage: test
|
|
script:
|
|
- make pylint | python3 .fix-pylint-output-for-gitlab-ci.py
|
|
allow_failure: true
|
|
coverage: '/Your code has been rated at ([0-9.]+)\/100/'
|
|
|
|
format:
|
|
<<: *pull_cache
|
|
stage: test
|
|
script:
|
|
- make ruff
|
|
|
|
pages:
|
|
<<: *pull_cache
|
|
stage: deploy
|
|
script:
|
|
- pwd
|
|
- ls
|
|
- make docs
|
|
artifacts:
|
|
paths:
|
|
- public/
|
|
rules:
|
|
- if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH
|