Skip to content

pypi: Automatic Releases #380

pypi: Automatic Releases

pypi: Automatic Releases #380

Workflow file for this run

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.10'
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 }}
DJANGO_SETTINGS_MODULE=cove_project.settings py.test
- name: Test cove lib instance
run: |
cd lib-cove-${{ matrix.cove }}
py.test