feat: wire database parameter through parse_url and dialect #26
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
| # .github/workflows/python-ci.yml | |
| name: Python CI | |
| on: | |
| push: | |
| branches: [ "main", "dev" ] | |
| pull_request: | |
| branches: [ "main", "dev" ] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| env: | |
| DATASTORE_EMULATOR_HOST: "localhost:8081" | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.13' | |
| - name: Set up Java (required for Datastore emulator) | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: 'temurin' | |
| java-version: '21' | |
| - name: 'Set up Cloud SDK' | |
| uses: 'google-github-actions/setup-gcloud@v2' | |
| with: | |
| install_components: 'beta,cloud-datastore-emulator' | |
| - name: 'Verify gcloud setup' | |
| run: | | |
| gcloud --version | |
| which gcloud | |
| gcloud components list --filter="id:cloud-datastore-emulator" --format="table(id,state.name)" | |
| - name: 'Configure gcloud project' | |
| run: 'gcloud config set project python-datastore-sqlalchemy' | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| if [ -f requirements.txt ]; then | |
| pip install -r requirements.txt | |
| else | |
| echo "No requirements.txt found" | |
| fi | |
| - name: Run tests | |
| run: | | |
| pytest |