Skip to content

Commit 320eca4

Browse files
committed
feat: enhance CI pipeline with e2e test support
- Split test execution into unit tests and e2e tests - Add conditional e2e test execution based on API key availability - Configure GEOCODIO_API_KEY secret for e2e test authentication - Add verbose output for e2e tests to aid debugging - Maintain existing linting step in workflow - Unit tests run always, e2e tests run only when API key is provided
1 parent 26c4d06 commit 320eca4

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

.github/workflows/ci.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,21 @@ jobs:
2727
uv pip install .
2828
uv pip install .[dev]
2929
30-
- name: Run tests
30+
- name: Run unit tests
3131
run: |
32-
uv run pytest
32+
uv run pytest tests/unit/
33+
34+
- name: Run e2e tests
35+
env:
36+
GEOCODIO_API_KEY: ${{ secrets.GEOCODIO_API_KEY }}
37+
run: |
38+
if [ -n "$GEOCODIO_API_KEY" ]; then
39+
echo "Running e2e tests with API key"
40+
uv run pytest tests/e2e/ -v
41+
else
42+
echo "No API key provided, skipping e2e tests"
43+
uv run pytest tests/e2e/ --collect-only
44+
fi
3345
3446
- name: Lint with flake8
3547
run: |

0 commit comments

Comments
 (0)