Gate release after publish and README description. #8
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: Test GAIA Docker | |
| on: | |
| pull_request: | |
| branches: [main] | |
| push: | |
| branches: [main] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 30 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python 3.12 | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.12' | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v5 | |
| - name: Install test dependencies | |
| run: uv sync --extra dev | |
| - name: Run Dockerfile build tests | |
| run: | | |
| uv run pytest tests/test_dockerfile.py -v --tb=short | |
| - name: Run entrypoint tests | |
| run: | | |
| uv run pytest tests/test_entrypoint.py -v --tb=short | |
| - name: Run integration tests | |
| if: github.event_name == 'push' | |
| run: | | |
| uv run pytest tests/test_container.py -v --tb=short -m integration | |
| - name: Cleanup Docker resources | |
| if: always() | |
| run: | | |
| docker system prune -af --volumes |