Skip to content

Automated Latest Dependency Updates #274

Automated Latest Dependency Updates

Automated Latest Dependency Updates #274

Workflow file for this run

on:
pull_request:
types: [opened, synchronize]
push:
branches:
- main
workflow_dispatch:
name: Integration Tests - Postgres
jobs:
postgres-test:
# Containers have to run on Linux
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
python_version: [ "3.10" ]
services:
postgres:
image: postgres
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DATABASE: postgres
ports:
- 5432:5432
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 15s
--health-retries 5
steps:
- name: Set up python ${{ matrix.python_version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python_version }}
- name: Checkout repository
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.ref }}
repository: ${{ github.event.pull_request.head.repo.full_name }}
- name: Install featuretools_sql with optional, dev, and test requirements
run: |
pip config --site set global.progress_bar off
python -m pip install --upgrade pip
make installdeps-test
- name: Seed the database
env:
POSTGRES_URL: postgresql://postgres:postgres@localhost:5432/postgres
run: sudo psql $POSTGRES_URL -f scripts/postgres.sql
- name: Run test
run: pytest featuretools_sql/tests/integration_tests/postgres/ -s -vv