diff --git a/.github/workflows/dev_cloudrun.yml b/.github/workflows/dev_cloudrun.yml index e8f8b8f..0cd3d88 100644 --- a/.github/workflows/dev_cloudrun.yml +++ b/.github/workflows/dev_cloudrun.yml @@ -66,9 +66,11 @@ jobs: - name: Checkout the code uses: actions/checkout@v2 - - uses: actions/setup-python@v4 - with: - python-version: '3.11' + - name: Install Python 3.11 + run: | + sudo apt update + sudo apt install python3.11 + python3.11 --version - name: Run unit test run: python3 -m unittest discover -s tests @@ -76,7 +78,7 @@ jobs: # <------------------ DEPLOY APP to GCP -------------------> deploy-app: name: Deploy app - needs: build-image + needs: [ build-image, unit-test ] runs-on: self-hosted outputs: env_url: ${{ steps.deploy.outputs.url }}