Temporarily change MDB repo #6
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: Test Develop | |
on: | |
push: | |
branches: [ "develop" ] | |
pull_request: | |
branches: [ "develop" ] | |
jobs: | |
build: | |
runs-on: ubuntu-22.04 | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: awalsh128/cache-apt-pkgs-action@latest | |
with: | |
packages: build-essential cmake postgresql-server-dev-14 libproj-dev libjson-c-dev libgsl-dev libgeos-dev | |
version: 1.0 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v3 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install MEOS | |
run: | | |
git clone https://github.com/estebanzimanyi/MobilityDB | |
cd MobilityDB | |
git checkout 3025da62c65d919e5fd813ae1c1dc54d4784dd58 | |
mkdir build | |
cd build | |
cmake .. -DMEOS=on | |
make -j | |
sudo make install | |
- name: Install python dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r pymeos_cffi/dev-requirements.txt | |
pip install -r pymeos/dev-requirements.txt | |
- name: Install pymeos_cffi | |
run: | | |
cd pymeos_cffi | |
python ./pymeos_cffi/builder/build_header.py | |
python ./pymeos_cffi/builder/build_pymeos_functions.py | |
pip install . | |
cd .. | |
- name: Test PyMEOS with pytest | |
run: | | |
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib | |
cd pymeos | |
pytest |