Skip to content

🔨 Update scripts init, test files, workflows gitactions #54

🔨 Update scripts init, test files, workflows gitactions

🔨 Update scripts init, test files, workflows gitactions #54

Workflow file for this run

name: CI_Airflow
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
services:
postgres:
image: postgres:latest
ports:
- 5432:5432
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: test_db
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.8'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r tests/requirements-test.txt
- name: Run tests
run: |
pytest tests/Dags_airflow -v