setup season 2425 with first part of the questions
This commit is contained in:
34
.gitlab-ci.yml
Normal file
34
.gitlab-ci.yml
Normal file
@@ -0,0 +1,34 @@
|
||||
stages:
|
||||
- build
|
||||
|
||||
|
||||
build job:
|
||||
stage: build
|
||||
script:
|
||||
- cd src
|
||||
- apt-get update -qy
|
||||
- apt-get install -y python3-dev python3-pip python3.10-venv
|
||||
- python3 -V
|
||||
- pip install pdm
|
||||
- pdm install
|
||||
# launch tests
|
||||
- export PYTHONPATH=.
|
||||
- export FLASK_APP=app
|
||||
- pdm run pytest --cov --cov-report term --cov-report html
|
||||
artifacts:
|
||||
paths:
|
||||
- src/htmlcov/
|
||||
|
||||
pages:
|
||||
stage: build
|
||||
dependencies:
|
||||
- build job
|
||||
needs: ["build job"]
|
||||
script:
|
||||
- mv src/htmlcov/ public/
|
||||
artifacts:
|
||||
paths:
|
||||
- public
|
||||
expire_in: 7 days
|
||||
only:
|
||||
- main
|
Reference in New Issue
Block a user