Skip to content

feat: add dags ci github action #2

feat: add dags ci github action

feat: add dags ci github action #2

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@v2
with:
python-version: "3.7"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements/requirements.txt
pip check
- name: Lint with Flake8
run: |
pip install flake8
flake8 dags --benchmark -v
- name: Confirm Black code compliance
run: |
pip install black
black dags -v
- name: Test with Pytest
run: |
pip install pytest
cd tests || exit
pytest tests.py -v