Skip to content

Metadata rds

Metadata rds #191

Workflow file for this run

name: Continuous Integration (Python)
on:
push:
branches:
- main
paths:
- 'python_src/**'
- '.github/workflows/ci_python.yaml'
- '.github/python_deps/action.yaml'
pull_request:
paths:
- 'python_src/**'
- '.github/workflows/ci_python.yaml'
- '.github/python_deps/action.yaml'
defaults:
run:
shell: bash
working-directory: python_src
concurrency:
group: python-ci-${{ github.ref }}
cancel-in-progress: true
jobs:
setup:
name: Python Setup
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/python_deps
format:
name: Format
runs-on: ubuntu-22.04
needs: setup
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/python_deps
- run: poetry run black . --check
typing:
name: Type Check
runs-on: ubuntu-22.04
needs: setup
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/python_deps
- run: poetry run mypy .
lint:
name: Lint
runs-on: ubuntu-22.04
needs: setup
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/python_deps
- run: poetry run pylint src tests
test:
name: Test
runs-on: ubuntu-22.04
needs: setup
env:
BOOTSTRAPPED: 1
MD_DB_HOST: local_rds
MD_DB_PORT: 5433
MD_DB_NAME: metadata
MD_DB_USER: postgres
MD_DB_PASSWORD: postgres
ALEMBIC_MD_DB_NAME: metadata_prod
RPM_DB_HOST: local_rds
RPM_DB_PORT: 5434
RPM_DB_NAME: performance_manager
RPM_DB_USER: postgres
RPM_DB_PASSWORD: postgres
ALEMBIC_RPM_DB_NAME: performance_manager_prod
services:
rpm_postgres:
image: postgres:14.4
ports:
- ${{env.RPM_DB_PORT}}:5432

Check failure on line 86 in .github/workflows/ci_python.yaml

View workflow run for this annotation

GitHub Actions / Continuous Integration (Python)

Invalid workflow file

The workflow is not valid. .github/workflows/ci_python.yaml (Line: 86, Col: 13): Unrecognized named-value: 'env'. Located at position 1 within expression: env.RPM_DB_PORT .github/workflows/ci_python.yaml (Line: 99, Col: 13): Unrecognized named-value: 'env'. Located at position 1 within expression: env.MD_DB_PORT
env:
POSTGRES_PASSWORD: ${{env.RPM_DB_PASSWORD}}
POSTGRES_USER: ${{env.RPM_DB_USER}}
POSTGRES_DB: ${{env.RPM_DB_NAME}}
options:
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
md_postgres:
image: postgres:14.4
ports:
- ${{env.MD_DB_PORT}}:5432
env:
POSTGRES_PASSWORD: ${{env.MD_DB_PASSWORD}}
POSTGRES_USER: ${{env.MD_DB_USER}}
POSTGRES_DB: ${{env.MD_DB_NAME}}
options:
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/python_deps
- run: poetry run pytest