Skip to content

fix dags test action #13

fix dags test action

fix dags test action #13

Workflow file for this run

name: Dags Check
on:
push:
paths:
- 'dags/**'
pull_request:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.9"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r dags/requirements.txt
pip check
- name: Lint dags with ruff
run: |
pip install ruff
ruff check --format=github ./dags
- name: Test with Pytest
run: |
pip install pytest apache-airflow
cd dags || exit
pytest tests.py -v