Updated README.md #38
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: | |
| - dev | |
| - main | |
| pull_request: | |
| branches: | |
| - dev | |
| - main | |
| jobs: | |
| pytest: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v6 | |
| - name: Install python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version-file: ./.python-version | |
| - name: Set Up Docker Compose | |
| uses: docker/setup-compose-action@v2 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v7 | |
| - name: Install requirements | |
| run: uv sync --locked --dev | |
| - name: Run Docker Compose | |
| run: docker compose -f test-docker-compose.yml --env-file .test.env up db -d | |
| - name: Run tests | |
| run: uv run pytest tests/ -vs | |