feat: alfagift order done transaction and cart (#801) #1458
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: Distillation Tests | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| workflow_dispatch: | |
| jobs: | |
| distillation-tests: | |
| name: Distillation Tests | |
| runs-on: ubuntu-24.04 | |
| timeout-minutes: 5 | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Install xdpyinfo | |
| run: sudo apt update -y && sudo apt install -y x11-utils | |
| - name: Prepare back-end environment | |
| uses: ./.github/actions/prepare-backend | |
| - name: Install Chromium via Playwright | |
| run: npx playwright install chromium | |
| - name: Find and symlink Chromium for Zendriver | |
| run: | | |
| chromium_path=$(ls ~/.cache/ms-playwright/chromium-*/chrome-linux64/chrome 2>/dev/null | head -1) | |
| if [ -z "$chromium_path" ] || [ ! -f "$chromium_path" ]; then | |
| echo "Chromium not found. Listing ms-playwright cache:" | |
| ls -la ~/.cache/ms-playwright/ || echo "Cache directory not found" | |
| exit 1 | |
| fi | |
| echo "Found Chromium at: $chromium_path" | |
| # Create symlinks for both expected paths | |
| sudo ln -sf "$chromium_path" /bin/chromium | |
| sudo ln -sf "$chromium_path" /usr/bin/chromium-browser | |
| ls -la /bin/chromium | |
| ls -la /usr/bin/chromium-browser | |
| "$chromium_path" --version | |
| - name: Run the ACME Corp test server | |
| run: uv run -m uvicorn tests.acme_corp.acme_corp:app --host 127.0.0.1 --port 5001 > >(tee /dev/stdout) 2> >(tee /dev/stderr | |
| >&2) & | |
| - name: Wait for the ACME server to start | |
| run: while ! curl -s 'http://localhost:5001' | grep 'ACME'; do sleep 1; done | |
| timeout-minutes: 3 | |
| - name: Run the distillation tests | |
| run: xvfb-run -a uv run pytest -n 7 -m "distill" tests/distillation/test_distill.py | |
| env: | |
| ACME_EMAIL: [email protected] | |
| ACME_PASSWORD: trustno1 | |
| ACME_OTP: 123456 |