Merge pull request #1256 from clowder-framework/fix/analysis-tab #4878
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: Pytest | |
| on: push | |
| defaults: | |
| run: | |
| working-directory: backend | |
| jobs: | |
| uv-example: | |
| name: python | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v5 | |
| - name: Install the project | |
| run: uv sync --all-extras --dev | |
| - name: Clean volumes | |
| run: docker volume rm clowder2_postgres_data || true | |
| - name: Start env | |
| run: docker compose -f ../docker-compose.dev.yml up -d | |
| # wait for docker containers to come up before running tests | |
| - name: Sleep for 60s seconds | |
| run: sleep 60s | |
| shell: bash | |
| - name: Run tests | |
| run: uv run pytest app/tests/ |