From 622b2392c3ed02b2f2362f02d4fd2e8887490d69 Mon Sep 17 00:00:00 2001 From: Andy Lulham Date: Wed, 15 May 2024 22:34:52 +0100 Subject: [PATCH] ci: run linting --- .github/workflows/deploy.yml | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index c761d9b00..82ecd6f55 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -12,9 +12,35 @@ concurrency: group: all_workflows jobs: - fetch: + test: + name: Test + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Set up python + uses: actions/setup-python@v5 + with: + python-version: '3.10' + cache: pip + + - name: Install dependencies + run: pip install -r requirements_dev.txt + + - name: Run flake8 + run: flake8 x_notes + + - name: Run black + run: black x_notes --check + + - name: Run isort + run: isort x_notes -c --profile black + + deploy: name: Deploy runs-on: ubuntu-latest + needs: test steps: - name: Checkout uses: actions/checkout@v4