From ba6c2a7ca9e7e0815289ce57e147d6d0bfe78d6b Mon Sep 17 00:00:00 2001 From: Mikkel Pedersen Date: Tue, 20 Aug 2024 13:55:37 +0200 Subject: [PATCH] fix(ci): Add CI to run on staging --- .github/workflows/ci.yaml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index a12d094..7fd715b 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -49,6 +49,11 @@ jobs: uses: actions/setup-python@v2 with: python-version: 3.7 + - name: Set Tag + id: set-tag + run: | + TAG=$(echo "${{ needs.deploy.outputs.tag }}" | sed 's/[[:space:]]//g') + echo "::set-output name=tag::$TAG" - name: install python dependencies run: pip install . - name: deploy to staging @@ -58,6 +63,14 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} QB_POLLINATION_TOKEN: ${{ secrets.POLLINATION_STAGING_LADYBUGBOT_TOKEN }} + - 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.cloud deploy-to-production: name: Deploy to Pollination Production