-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (28 loc) · 854 Bytes
/
format.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: build
on: [push, pull_request]
jobs:
format-python:
runs-on: ubunut-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: 3.10.11
- name: Install Dependencies
run: pip install isort black sqlfluff flake8 security
- name: Run Continuous Integration - isort
run: isort .
- name: Run Continous Integration - black
run: black .
- name: Run Continuous Integration - sqlfluff
run: |
cd dbt_stocks
sqlfluff fix .
- name: Run Continuous Integation - flake8
run: flake8 .
- name: Run Continuous Integration - safety
uses: pyupio/safety-action@v1
with:
api-key: ${{ secrets.SAFETY_API_KEY }}