Skip to content

feat: Kingfisher Process removes collection_file_item table #557

feat: Kingfisher Process removes collection_file_item table

feat: Kingfisher Process removes collection_file_item table #557

Workflow file for this run

name: CI
on: [push, pull_request]
jobs:
build:
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.11'
cache: pip
cache-dependency-path: '**/requirements*.txt'
- run: pip install -r requirements_dev.txt
- run: |
psql postgresql://postgres:postgres@localhost:${{ job.services.postgres.ports[5432] }}/postgres -f pelican/migrations/*.sql
psql postgresql://postgres:postgres@localhost:${{ job.services.postgres.ports[5432] }}/postgres -c "\copy exchange_rates (valid_on, rates) from 'pelican/static/exchange_rates_dump.csv' delimiter ',' csv header;"
- env:
DATABASE_URL: postgresql://postgres:postgres@localhost:${{ job.services.postgres.ports[5432] }}/postgres
KINGFISHER_PROCESS_DATABASE_URL: postgresql://postgres:postgres@localhost:${{ job.services.postgres.ports[5432] }}/postgres
TEST_URL: http://localhost:${{ job.services.httpbin.ports[8080] }}
# For requests.get() in pelican.util.codelists._get() (from unittest tests).
run: |
coverage run --source=contracting_process,dataset,manage,pelican,time_variance,workers -m pytest -W error -W ignore::ResourceWarning -rs
- uses: coverallsapp/github-action@v2
services:
postgres:
image: postgres:12
env:
POSTGRES_PASSWORD: postgres
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432/tcp
rabbitmq:
image: rabbitmq:latest
options: >-
--health-cmd "rabbitmq-diagnostics -q check_running"
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5672/tcp
httpbin:
image: mccutchen/go-httpbin:latest
ports:
- 8080/tcp