From c73db8ceea6f541f143be5036e790fe0fe4651dc Mon Sep 17 00:00:00 2001 From: = Date: Wed, 30 Oct 2024 07:44:42 +0100 Subject: [PATCH] Update Prefect pipeline --- .github/workflows/prefect.yaml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/.github/workflows/prefect.yaml b/.github/workflows/prefect.yaml index 0a68bdb..15538b3 100644 --- a/.github/workflows/prefect.yaml +++ b/.github/workflows/prefect.yaml @@ -4,6 +4,27 @@ on: push: branches: [ main ] jobs: + lint-format-types-test: + runs-on: ubuntu-latest + strategy: + matrix: + python-version: ["3.10", "3.11"] + + steps: + - uses: actions/checkout@v2 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + - name: Install Requirements + run: pip install -r requirements/dev.txt + - name: Pylint + run: pylint src/ + - name: Black + run: black --check ./ + - name: Type Check (mypy) + run: mypy src --strict + prefect: runs-on: ubuntu-latest strategy: @@ -24,3 +45,5 @@ jobs: pip install -r requirements/prod.txt prefect config set PREFECT_API_URL=$PREFECT_API_URL python -m src.deploy_prefect.deployment + +