-
Notifications
You must be signed in to change notification settings - Fork 4
57 lines (52 loc) · 1.79 KB
/
integration.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
name: Integration
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
cove: [ 'oc4ids' , 'ocds' ]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.11'
cache: pip
cache-dependency-path: '**/requirements*.txt'
- name: InstallCommon
run: |
sudo apt-get install gettext translate-toolkit
- name: Clone
run: |
git clone https://github.com/open-contracting/cove-${{ matrix.cove }}.git
git clone https://github.com/open-contracting/lib-cove-${{ matrix.cove }}.git
git clone https://github.com/OpenDataServices/lib-cove-web.git
- name: Install
run: |
pip install -r requirements_dev.txt
# Temporary fix so we don't try to install libcove from a non-existent
# branch
sed -i '/=libcove/d' cove-${{ matrix.cove}}/requirements_dev.txt
pip install -r cove-${{ matrix.cove }}/requirements_dev.txt
# Make sure we're using local libs rather than one brought in
# via requirements.
pip install -e ./lib-cove-${{ matrix.cove }}/
pip install -e ./lib-cove-web
pip install -e .
pip list
- name: Compile Messages
if: matrix.cove == 'ocds'
run: |
cd cove-${{ matrix.cove }}
python manage.py compilemessages
# Ensure that compilemessages gets run for lib-cove-web
pushd /opt/hostedtoolcache; pwd; django-admin compilemessages; popd
- name: Test cove instance
run: |
cd cove-${{ matrix.cove }}
./manage.py collectstatic --noinput -v2
DJANGO_SETTINGS_MODULE=core.settings py.test
- name: Test cove lib instance
run: |
cd lib-cove-${{ matrix.cove }}
py.test