Skip to content

Merge pull request #10 from Geocodio/feat/add-user-agent-header #28

Merge pull request #10 from Geocodio/feat/add-user-agent-header

Merge pull request #10 from Geocodio/feat/add-user-agent-header #28

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
jobs:
test-and-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v5
- name: "Set up Python"
uses: actions/setup-python@v5
with:
python-version: "3.11"
# python-version-file: "pyproject.toml"
- name: Install dependencies
run: |
uv sync
uv pip install .
uv pip install .[dev]
- name: Run unit tests
run: |
uv run pytest tests/unit/
- name: Run e2e tests
env:
GEOCODIO_API_KEY: ${{ secrets.GEOCODIO_API_KEY }}
run: |
if [ -n "$GEOCODIO_API_KEY" ]; then
echo "Running e2e tests with API key"
uv run pytest tests/e2e/ -v
else
echo "No API key provided, skipping e2e tests"
fi
- name: Lint with flake8
run: |
uv run flake8 src/ --ignore=E501