diff --git a/.github/workflows/lint-and-test.yml b/.github/workflows/lint-and-test.yml index 5da69db..3441012 100644 --- a/.github/workflows/lint-and-test.yml +++ b/.github/workflows/lint-and-test.yml @@ -22,6 +22,10 @@ jobs: # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics + - name: Lint with Black + run: | + black --check . + test: strategy: matrix: @@ -48,10 +52,6 @@ jobs: pip install coverage black if [ -f requirements.txt ]; then pip install -r requirements.txt; fi - - name: Lint with Black - run: | - black --check . - - name: Run tests run: | coverage3 run --source='./encrypted_fields' manage.py test