Skip to content
This repository has been archived by the owner on Dec 18, 2023. It is now read-only.

Unpin pydantic and fastapi #733

Unpin pydantic and fastapi

Unpin pydantic and fastapi #733

name: PostgreSQL+Azure Blob Storage CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
jobs:
build:
timeout-minutes: 15
strategy:
fail-fast: false
matrix:
python-version: [3.8, 3.9]
runs-on: ubuntu-latest
services:
postgres:
image: postgres:10.8
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres
ports:
- 5432/tcp
# needed because the postgres container does not provide a healthcheck
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
steps:
- uses: actions/checkout@v2
- name: Start Azurite
run: |
npx azurite &
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install
run: |
pip install -e .[test,postgres,azure]
- name: Run tests
# needed because currently our integration is not up-to-date with azure and
# not working properly
continue-on-error: true
run: |
ert-storage alembic upgrade head
pytest tests -vv
env:
ERT_STORAGE_DATABASE_URL: postgresql://postgres:postgres@localhost:${{ job.services.postgres.ports[5432] }}/postgres
ERT_STORAGE_AZURE_CONNECTION_STRING: DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;QueueEndpoint=http://127.0.0.1:10001/devstoreaccount1;