From cdcbd8e22d4f5defd6290195e5a1af11cd3c9473 Mon Sep 17 00:00:00 2001 From: Mikkel Pedersen Date: Tue, 14 Jan 2025 21:09:21 +0100 Subject: [PATCH] fix(sample): Move sample run to different task --- .github/workflows/ci.yaml | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index e0ac8fa..383b656 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -59,6 +59,19 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} QB_POLLINATION_TOKEN: ${{ secrets.POLLINATION_STAGING_LADYBUGBOT_TOKEN }} + - name: Set Tag + id: set-tag + run: | + TAG=$(echo "${{ needs.deploy.outputs.tag }}" | sed 's/[[:space:]]//g') + echo "tag=$TAG" >> $GITHUB_OUTPUT + - name: install python dependencies for samples + run: pip install -r samples/requirements.txt + - name: run on staging + run: python samples/run_jobs.py + env: + QB_POLLINATION_TOKEN: ${{ secrets.POLLINATION_STAGING_LADYBUGBOT_TOKEN }} + TAG: ${{ steps.set-tag.outputs.tag }} + HOST: https://api.staging.pollination.solutions deploy-viz-and-full: name: Deploy `viz` and `full` branches @@ -105,19 +118,6 @@ jobs: python setup.py sdist bdist_wheel --branch ${{ matrix.branch }} echo "Pushing new version to PyPi" twine upload dist/* -u $PYPI_USERNAME -p $PYPI_PASSWORD - - name: Set Tag - id: set-tag - run: | - TAG=$(echo "${{ needs.deploy.outputs.tag }}-viz" | sed 's/[[:space:]]//g') - echo "tag=$TAG" >> $GITHUB_OUTPUT - - name: install python dependencies for samples - run: pip install -r samples/requirements.txt - - name: run on staging - run: python samples/run_jobs.py - env: - QB_POLLINATION_TOKEN: ${{ secrets.POLLINATION_STAGING_LADYBUGBOT_TOKEN }} - TAG: ${{ steps.set-tag.outputs.tag }} - HOST: https://api.staging.pollination.solutions deploy-to-production: name: Deploy to Pollination Production