From 40ac37a5ae6bdc4b277cb0665ce6230c6f089690 Mon Sep 17 00:00:00 2001 From: = Date: Wed, 30 Oct 2024 07:49:07 +0100 Subject: [PATCH] Update Prefect pipeline --- .github/workflows/prefect.yaml | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/.github/workflows/prefect.yaml b/.github/workflows/prefect.yaml index 6b12412..e1926fa 100644 --- a/.github/workflows/prefect.yaml +++ b/.github/workflows/prefect.yaml @@ -37,15 +37,11 @@ jobs: uses: actions/setup-python@v2 with: python-version: ${{ matrix.python-version }} - - - name: Install Requirements - run: pip install -r requirements/dev.txt - - name: Unit Tests - run: python -m pytest tests/unit - env: - IPFS_ACCESS_KEY: ${{ secrets.IPFS_ACCESS_KEY }} - - name: Integration Tests - run: python -m pytest tests/integration - env: - PROD_DB_URL: ${{ secrets.PROD_DB_URL }} - BARN_DB_URL: ${{ secrets.BARN_DB_URL }} + - env: + PREFECT_API_URL: ${{ secrets.PREFECT_API_URL }} + - run: | + python -m pip install --upgrade pip + pip install -r requirements/prefect.txt + pip install -r requirements/prod.txt + prefect config set PREFECT_API_URL=$PREFECT_API_URL + python -m src.deploy_prefect.deployment