adding in security check #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |