fix: Remove --import-mode=importlib from coverage.yml #9
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Docker Compose Integration | |
| on: | |
| push: | |
| branches: [main, master] | |
| pull_request: | |
| branches: [main, master] | |
| workflow_dispatch: | |
| jobs: | |
| compose-test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Create test .env | |
| run: | | |
| # Use valid token format for aiogram validation | |
| echo "BOT_TOKEN=123456789:ABCdefGHIjklMNOpqrsTUVwxyz" > .env | |
| echo "MINDEE_API_KEY=test-key" >> .env | |
| echo "MINDEE_MODEL_ID=test-model" >> .env | |
| echo "LOG_LEVEL=INFO" >> .env | |
| - name: Create data.sqlite file | |
| run: touch data.sqlite | |
| - name: Start services | |
| run: docker compose up -d --build | |
| - name: Wait for container to start | |
| run: | | |
| timeout 30 bash -c 'until docker compose ps | grep -q bot; do sleep 2; done' || true | |
| sleep 5 | |
| - name: Check container status | |
| run: | | |
| echo "=== Container status ===" | |
| docker compose ps | |
| echo "=== Container logs (last 30 lines) ===" | |
| docker compose logs --tail=30 bot || true | |
| - name: Verify container structure | |
| continue-on-error: true | |
| run: | | |
| # Just verify the container can execute Python and has files | |
| docker compose exec -T bot python --version || echo "⚠️ Python check failed" | |
| docker compose exec -T bot ls -la /app/bot.py || echo "⚠️ File check failed" | |
| - name: Cleanup | |
| if: always() | |
| run: docker compose down -v |