Add Docker site environments and integration tests (#12) #4
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 Docker GitLab | |
| on: | |
| pull_request: | |
| branches: [main] | |
| paths: | |
| - "dev/environments/docker/sites/gitlab/**" | |
| - "tests/integration/environments/gitlab/**" | |
| - "tests/integration/environments/conftest.py" | |
| push: | |
| branches: [main] | |
| paths: | |
| - "dev/environments/docker/sites/gitlab/**" | |
| - "tests/integration/environments/gitlab/**" | |
| - "tests/integration/environments/conftest.py" | |
| jobs: | |
| test: | |
| name: Test gitlab | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v7 | |
| with: | |
| enable-cache: true | |
| - name: Set up Python | |
| run: uv python install 3.11 | |
| - name: Install dependencies | |
| run: uv sync --all-extras | |
| - name: Install Playwright browsers | |
| run: uv run playwright install chromium --with-deps | |
| - name: Build Docker image | |
| run: uv run invoke envs.docker.build --site=gitlab --tag=test | |
| - name: Run integration tests | |
| run: uv run invoke envs.docker.test --site=gitlab --tag=test |