From 03e6da4ad3154e8506783b1c38507cbf9f3343f4 Mon Sep 17 00:00:00 2001 From: rxu17 <26471741+rxu17@users.noreply.github.com> Date: Wed, 11 Dec 2024 22:19:12 -0800 Subject: [PATCH] test integration tests --- .github/workflows/ci.yml | 26 ++++++++++++++++---------- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 92050153..dae21db6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -54,16 +54,6 @@ jobs: # Use always() to always run this step to publish test results when there are test failures if: ${{ always() }} - integration-tests: - runs-on: ubuntu-latest - steps: - - name: Checkout repository - uses: actions/checkout@v4 - - - name: Pull Public Docker Image from GHCR - run: | - docker pull ghcr.io/sage-bionetworks/genie:main - lint: runs-on: ubuntu-latest @@ -141,3 +131,19 @@ jobs: labels: ${{ steps.meta.outputs.labels }} cache-from: ${{ steps.registry_refs.outputs.tags }},mode=max cache-to: ${{ steps.registry_refs.outputs.tags }},mode=max + + integration-tests: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Pull Public Docker Image from GHCR + run: | + docker pull ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.ref_name }} + + - name: Run Tests in Docker Container + run: | + docker run --rm ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.ref_name }} \ + python bin/input_to_database.py main --project_id syn7208886 --onlyValidate +