Honour a client-supplied collection id on creation #34
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
| name: Python checks | |
| on: | |
| pull_request: | |
| push: | |
| branches: [master] | |
| jobs: | |
| lint: | |
| name: Lint (ruff) | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.11" | |
| - name: Install ruff | |
| run: pip install ruff | |
| - name: Run ruff | |
| run: ruff check . || echo "::warning::ruff found issues — please fix before merging" | |
| continue-on-error: true | |
| python-import: | |
| name: Import smoke test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.11" | |
| - name: Install dependencies | |
| run: | | |
| pip install --upgrade pip | |
| pip install -r requirements.txt | |
| - name: Verify modules import | |
| run: | | |
| python -c "import server" || true | |
| python -c "import utils" | |
| python -c "from resource.collections import Create, Retrieve" | |
| python -c "from resource.moving_features import Create, Retrieve" | |
| python -c "from resource.temporal_geom_query import distance, velocity, acceleration" | |
| unit-tests: | |
| name: Unit tests (PyMEOS-free) | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.11" | |
| - name: Install test dependencies | |
| run: pip install pytest pyarrow | |
| - name: Run unit tests | |
| run: python -m pytest tests/test_bulk.py -v |