Skip to content

Feature/async - v2.0.0 release candidate #1

Feature/async - v2.0.0 release candidate

Feature/async - v2.0.0 release candidate #1

Workflow file for this run

name: Integration Tests
on:
pull_request:
branches: [main, 2.0-development]
push:
branches: [main]
workflow_dispatch:
permissions:
contents: read
concurrency:
group: integration-${{ github.ref }}
cancel-in-progress: true
jobs:
integration:
name: Integration Tests
runs-on: ubuntu-latest
services:
comlink:
image: ghcr.io/swgoh-utils/swgoh-comlink:latest
ports:
- 3000:3000
comlink-hmac:
image: ghcr.io/swgoh-utils/swgoh-comlink:latest
env:
ACCESS_KEY: test_public_key
SECRET_KEY: test_secret_key
ports:
- 3001:3000
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v7
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: "3.12"
- name: Install dependencies
run: uv pip install --system -e "." pytest pytest-asyncio
- name: Wait for Comlink services
run: |
for i in $(seq 1 30); do
curl -sf http://localhost:3000/metadata && break
echo "Waiting for Comlink... ($i/30)"
sleep 2
done
for i in $(seq 1 30); do
curl -sf http://localhost:3001/metadata && break
echo "Waiting for Comlink HMAC... ($i/30)"
sleep 2
done
- name: Run integration tests
env:
RUN_INTEGRATION_TESTS: "1"
run: python -m pytest tests/integration/ -v