-
Notifications
You must be signed in to change notification settings - Fork 0
71 lines (60 loc) · 1.94 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
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