Skip to content

Update models with latest modeling effort from George #33

Update models with latest modeling effort from George

Update models with latest modeling effort from George #33

Workflow file for this run

name: CI
on:
# push: -- just run on PRs for now
pull_request:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
services:
postgres:
image: postgis/postgis:13-3.0
env:
POSTGRES_PASSWORD: postgis
POSTGRES_DB: arches
ports:
- 5432:5432
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
steps:
- name: Check out arches
uses: actions/checkout@v3
with:
repository: archesproject/arches
ref: dev/7.6.x
path: arches
- name: Check out arches_rdm
uses: actions/checkout@v2
with:
path: arches_rdm
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Install arches_rdm
working-directory: arches_rdm
run: |
python -m pip install --upgrade pip
pip install .
echo Project installed
- name: Install arches dev version
working-directory: arches
run: |
python -m pip uninstall arches -y
python -m pip install .
echo Arches dev version installed
- name: Install Java, GDAL, and other system dependencies
run: |
sudo apt update
sudo apt-get install libxml2-dev libpq-dev openjdk-8-jdk libgdal-dev
echo Postgres and ES dependencies installed
- uses: ankane/setup-elasticsearch@v1
with:
elasticsearch-version: 8
- name: Check for missing migrations
working-directory: arches_rdm
run: |
PYTHONPATH="../arches" python manage.py makemigrations --check --settings=arches_rdm.test_settings
- name: Run arches_rdm unit tests
working-directory: arches_rdm
run: |
PYTHONPATH="../arches" python -W default::DeprecationWarning manage.py test --settings=arches_rdm.test_settings