chore: remove venv from tracking and add to gitignore #160
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: CI | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v3 | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v2 | |
| - name: Create .env file | |
| run: | | |
| echo "POSTGRES_USER=${{ secrets.POSTGRES_USER }}" >> .env | |
| echo "POSTGRES_PASSWORD=${{ secrets.POSTGRES_PASSWORD }}" >> .env | |
| echo "POSTGRES_DB=${{ secrets.POSTGRES_DB }}" >> .env | |
| - name: Build and run with Docker Compose | |
| run: | | |
| docker compose up --build -d | |
| - name: Wait for services to be ready | |
| run: sleep 10 | |
| - name: Print Docker logs | |
| run: docker compose logs | |
| - name: Stop and remove Docker containers | |
| run: docker compose down |