diff --git a/.github/workflows/black_and_lint.yaml b/.github/workflows/black_and_lint.yaml new file mode 100644 index 0000000..99a5edd --- /dev/null +++ b/.github/workflows/black_and_lint.yaml @@ -0,0 +1,30 @@ +name: Lint and Black Check + +on: + pull_request: + branches: + - main + +jobs: + lint: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: 3.9 + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install flake8 black + + - name: Run Flake8 + run: flake8 + + - name: Run Black Dry Run + run: black --check .