Initial take on postgis module #1
Workflow file for this run
This file contains 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: Tests | |
on: | |
push: | |
branches: | |
- master | |
- ci | |
pull_request: | |
workflow_dispatch: | |
inputs: {} | |
jobs: | |
test: | |
runs-on: ${{ matrix.os }} | |
defaults: | |
run: | |
shell: bash | |
env: | |
PIP_DISABLE_PIP_VERSION_CHECK: 1 | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: ["3.12"] | |
edgedb-version: [nightly] | |
os: [ubuntu-latest] | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 50 | |
submodules: true | |
- name: Install EdgeDB | |
uses: edgedb/setup-edgedb@v1 | |
with: | |
server-version: ${{ matrix.edgedb-version }} | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install Postgres | |
run: | | |
sudo apt-get install postgresql-12 postgresql-server-dev-12 | |
- name: Install PostGIS build deps | |
run: | | |
sudo apt-get build-dep postgis | |
- name: Build extension package | |
run: | | |
PYTHON=$(dirname $(edgedb server info --latest --bin-path))/python3 | |
make -j8 PYTHON=$PYTHON EDBFLAGS=--no-devmode PG_CONFIG=$(which pg_config) | |
# - name: Install Python Deps | |
# if: steps.release.outputs.version == 0 | |
# run: | | |
# python -m pip install --upgrade setuptools pip wheel | |
# python -m pip install -e .[test] | |
# - name: Test | |
# if: steps.release.outputs.version == 0 | |
# env: | |
# LOOP_IMPL: ${{ matrix.loop }} | |
# SERVER_VERSION: ${{ matrix.edgedb-version }} | |
# run: | | |
# if [ "${SERVER_VERSION}" = "nightly" ]; then | |
# export EDGEDB_TEST_CODEGEN_ASSERT_SUFFIX=.assert | |
# else | |
# export EDGEDB_TEST_CODEGEN_ASSERT_SUFFIX=.assert${SERVER_VERSION} | |
# fi | |
# if [ "${LOOP_IMPL}" = "uvloop" ]; then | |
# env USE_UVLOOP=1 python -m unittest -v tests.suite | |
# else | |
# python -m unittest -v tests.suite | |
# fi |