E2E #21
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
| # .github/workflows/e2e.yml | |
| name: E2E | |
| on: | |
| schedule: | |
| - cron: '0 5 * * 1-5' # weekday nights to catch API drift | |
| workflow_dispatch: | |
| jobs: | |
| e2e-linux: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 15 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.12' | |
| - run: pip install pytest | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v3 | |
| - name: Build E2E image (cached) | |
| uses: docker/build-push-action@v5 | |
| with: | |
| context: . | |
| file: tests/e2e/Dockerfile | |
| tags: codeplain-e2e:latest | |
| load: true | |
| cache-from: type=gha | |
| cache-to: type=gha,mode=max | |
| - name: Run E2E tests | |
| env: | |
| CODEPLAIN_API_KEY: ${{ secrets.CODEPLAIN_API_KEY }} | |
| run: pytest tests/e2e/ -v --tb=short | |
| - name: Upload generated outputs on failure | |
| if: failure() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: e2e-outputs-linux | |
| path: /tmp/pytest-of-runner/**/container_work*/** | |
| e2e-windows: | |
| runs-on: windows-latest | |
| timeout-minutes: 15 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.12' | |
| - run: pip install pytest | |
| - name: Run E2E tests | |
| env: | |
| CODEPLAIN_API_KEY: ${{ secrets.CODEPLAIN_API_KEY }} | |
| run: pytest tests/e2e/ -v --tb=short |