Files
mcp-maildir/.gitea/workflows/pr.yaml
T
opencodecabilloteu 6a1c86f572
PR Checks / test (pull_request) Successful in 17s
PR Checks / integration-test (pull_request) Successful in 27s
fix: correct setup-python SHA in pr.yaml
2026-06-12 21:04:37 -04:00

43 lines
1.4 KiB
YAML

name: PR Checks
on:
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6
with:
python-version: "3.14"
- name: Install dependencies
run: pip install -r requirements.txt pytest
- name: Run unit tests
run: python -m pytest tests/ -v --ignore=tests/test_integration.py
integration-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
- name: Start Qdrant
run: docker run -d --name qdrant --network "container:$(hostname)" docker.io/qdrant/qdrant:latest
- name: Wait for Qdrant
run: |
for i in $(seq 1 30); do
curl -s http://localhost:6333/healthz && echo "QDRANT ready" && break
echo "Waiting for Qdrant... ($i/30)"
sleep 1
done
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6
with:
python-version: "3.14"
- name: Install dependencies
run: pip install -r requirements.txt pytest
- name: Run integration tests
run: python -m pytest tests/test_integration.py -v
env:
QDRANT_URL: http://localhost:6333
COLLECTION_NAME: test_mcp_maildir