fix vibe 1 2
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
dv 2026-03-19 17:27:59 +03:00
parent 4537689f87
commit 9ac2757dbd

View file

@ -1,9 +1,18 @@
volumes:
pip_cache:
host:
path: /var/lib/woodpecker/pip-cache/intra_max_bot
steps: steps:
test: test:
image: python:3.11-slim image: python:3.11-slim
volumes:
- pip_cache:/pip-cache
commands: commands:
- pip install --no-cache-dir -r requirements.txt - export PIP_CACHE_DIR=/pip-cache
- pytest -q tests -p no:cacheprovider - python -m pip install -r requirements.txt
- export PYTHONPATH="$PWD"
- python -m pytest -q tests -p no:cacheprovider
when: when:
- event: [push, pull_request, manual] - event: [push, pull_request, manual]
@ -23,7 +32,7 @@ steps:
- git pull --ff-only - git pull --ff-only
- if [ ! -d .venv ]; then python3 -m venv .venv; fi - if [ ! -d .venv ]; then python3 -m venv .venv; fi
- . .venv/bin/activate - . .venv/bin/activate
- pip install --no-cache-dir -r requirements.txt - pip install -r requirements.txt
- sudo systemctl restart max-support - sudo systemctl restart max-support
- set -a - set -a
- . /home/caps/intra_max_bot/.env - . /home/caps/intra_max_bot/.env
@ -32,3 +41,4 @@ steps:
when: when:
- event: [push, manual] - event: [push, manual]
- branch: [main, master] - branch: [main, master]