switch to pdm
This commit is contained in:
@@ -7,14 +7,17 @@ build job:
|
||||
script:
|
||||
- cd src
|
||||
- apt-get update -qy
|
||||
- apt-get install -y python3-dev python3-pip python3.12-venv
|
||||
- apt-get install -y python3-dev python3-pip python3.12-venv curl
|
||||
- python3 -V
|
||||
- pip3 install --break-system-packages -r requirements.txt
|
||||
# - pip3 install --break-system-packages -r requirements.txt
|
||||
- curl -sSL https://pdm-project.org/install-pdm.py | python3 -
|
||||
- export PATH=/root/.local/bin:$PATH
|
||||
- pdm install
|
||||
|
||||
# launch tests
|
||||
- export PYTHONPATH=.
|
||||
- export FLASK_APP=app
|
||||
- pytest tests --cov --cov-report term --cov-report html
|
||||
- pdm run pytest tests --cov --cov-report term --cov-report html
|
||||
|
||||
|
||||
artifacts:
|
||||
|
Reference in New Issue
Block a user