Skip to content

Add variable_names and dimension_name to DataSource #834

Add variable_names and dimension_name to DataSource

Add variable_names and dimension_name to DataSource #834

Workflow file for this run

# e2e-tests for Metacatalog
name: e2e Test
on:
pull_request:
types: [opened, reopened, synchronize, edited]
jobs:
test:
runs-on: ubuntu-20.04
strategy:
matrix:
py_version: ['3.7', '3.8', '3.9', '3.10']
# create the postgis service - the version is hardcoded atm
services:
postgis:
image: postgis/postgis:15-3.3
ports:
- 5432:5432
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
steps:
- name: Chechout Repository
uses: actions/checkout@v3
- name: Install Python
uses: actions/setup-python@v4.5.0
with:
python-version: ${{ matrix.py_version }}
# install metacatalog and test dependencies
# e2e-tests rely on pytest and pytest-depends so far
- name: Install dependencies
run: |
pip install -e .
pip install pytest pytest-depends pytest-cov
# run the actual tests
# they need the arbitrary port number which is mapped to 5432
# in the VM host
# this has a lot of side-effects, as e2e is run against an
# actual database
- name: e2e Tests
run: pytest --cov-config=.coveragerc --cov=./ --cov-report=xml
env:
METACATALOG_URI: postgresql://postgres:postgres@localhost:5432/postgres
- name: Upload coverage to Codecov
if: ${{ matrix.py_version }} == '3.9'
uses: codecov/codecov-action@v3.1.1
with:
file: ./coverage.xml
flags: e2e
env_vars: OS,PYTHON