chore: update Python version in Dockerfile and improve test commands in Makefile
- Upgraded Python version in Dockerfile from 3.9 to 3.11.9 for enhanced performance and security. - Adjusted paths in Dockerfile to reflect the new Python version. - Modified test commands in Makefile to activate the virtual environment before running tests, ensuring proper dependency management.
This commit is contained in:
4
Makefile
4
Makefile
@@ -169,7 +169,7 @@ test-all: ## Запустить все тесты в одном процессе
|
||||
|
||||
test-infra: check-deps ## Запустить тесты инфраструктуры
|
||||
@echo "🏗️ Запускаю тесты инфраструктуры..."
|
||||
@python3 -m pytest tests/infra/ -v
|
||||
@source .venv/bin/activate && python3 -m pytest tests/infra/ -v
|
||||
|
||||
test-bot: check-bot-deps ## Запустить тесты Telegram бота
|
||||
@echo "🤖 Запускаю тесты Telegram бота..."
|
||||
@@ -227,7 +227,7 @@ check-ports: ## Проверить занятые порты
|
||||
|
||||
check-deps: ## Проверить зависимости инфраструктуры
|
||||
@echo "🔍 Проверяю зависимости инфраструктуры..."
|
||||
@python3 -c "import pytest" 2>/dev/null || (echo "❌ Отсутствуют зависимости инфраструктуры. Установите: pip install pytest" && exit 1)
|
||||
@source .venv/bin/activate && python3 -c "import pytest" 2>/dev/null || (echo "❌ Отсутствуют зависимости инфраструктуры. Установите: source .venv/bin/activate && pip install pytest" && exit 1)
|
||||
@echo "✅ Зависимости инфраструктуры установлены"
|
||||
|
||||
check-bot-deps: ## Проверить зависимости Telegram бота
|
||||
|
||||
Reference in New Issue
Block a user