diff --git a/.github/workflows/update_api_database.yml b/.github/workflows/update_api_database.yml index 24d3391..64218a2 100644 --- a/.github/workflows/update_api_database.yml +++ b/.github/workflows/update_api_database.yml @@ -22,7 +22,7 @@ on: jobs: run_update: name: Run Update - runs-on: macos-latest + runs-on: ubuntu-latest environment: name: ${{ inputs.environment_name }} steps: @@ -95,6 +95,11 @@ jobs: uses: actions/setup-python@v5 with: python-version-file: ".python-version" + + - name: Setup PostgreSQL + uses: tj-actions/install-postgresql@v3 + with: + postgresql-version: 15 - name: Health check run: | @@ -103,14 +108,13 @@ jobs: echo "Using API Database: ${{ inputs.api_name }}" echo "Using environment: ${{ inputs.environment_name }}" echo "Toy Secret value: $TOY_SECRET_1PASSWORD" + postgres --version + psql --version + pg_dump --version + which psql - name: Install dependencies run: | - brew uninstall postgresql@14 - brew install postgresql@15 - export PATH="/usr/local/opt/postgresql@15/bin:$PATH" - echo export PATH="/usr/local/opt/postgresql@15/bin:$PATH" >> ~/.bash_profile - brew services start postgresql@15 brew install minio/stable/mc mc alias set spaces $DO_SPACES_ENDPOINT $DO_SPACES_ACCESS_KEY_ID $DO_SPACES_SECRET_ACCESS_KEY python3 -m pip install --force-reinstall -r requirements.txt @@ -119,7 +123,3 @@ jobs: psql --version pg_dump --version which psql - - - name: Check dependencies (PATH really) - run: | - which psql