This commit is contained in:
parent
4537689f87
commit
9ac2757dbd
1 changed files with 13 additions and 3 deletions
|
|
@ -1,9 +1,18 @@
|
|||
volumes:
|
||||
pip_cache:
|
||||
host:
|
||||
path: /var/lib/woodpecker/pip-cache/intra_max_bot
|
||||
|
||||
steps:
|
||||
test:
|
||||
image: python:3.11-slim
|
||||
volumes:
|
||||
- pip_cache:/pip-cache
|
||||
commands:
|
||||
- pip install --no-cache-dir -r requirements.txt
|
||||
- pytest -q tests -p no:cacheprovider
|
||||
- export PIP_CACHE_DIR=/pip-cache
|
||||
- python -m pip install -r requirements.txt
|
||||
- export PYTHONPATH="$PWD"
|
||||
- python -m pytest -q tests -p no:cacheprovider
|
||||
when:
|
||||
- event: [push, pull_request, manual]
|
||||
|
||||
|
|
@ -23,7 +32,7 @@ steps:
|
|||
- git pull --ff-only
|
||||
- if [ ! -d .venv ]; then python3 -m venv .venv; fi
|
||||
- . .venv/bin/activate
|
||||
- pip install --no-cache-dir -r requirements.txt
|
||||
- pip install -r requirements.txt
|
||||
- sudo systemctl restart max-support
|
||||
- set -a
|
||||
- . /home/caps/intra_max_bot/.env
|
||||
|
|
@ -32,3 +41,4 @@ steps:
|
|||
when:
|
||||
- event: [push, manual]
|
||||
- branch: [main, master]
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue