From 4e2fd404c02f8ab14b1ef511615fa30c3cbfbae0 Mon Sep 17 00:00:00 2001 From: Akshay Joshi Date: Thu, 12 Dec 2024 16:49:11 +0530 Subject: [PATCH] pgagent extension should be created only EPAS < 17. --- .github/workflows/run-feature-tests-epas.yml | 4 +++- .github/workflows/run-python-tests-epas.yml | 6 ++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/run-feature-tests-epas.yml b/.github/workflows/run-feature-tests-epas.yml index 20f50160b..958289472 100644 --- a/.github/workflows/run-feature-tests-epas.yml +++ b/.github/workflows/run-feature-tests-epas.yml @@ -61,7 +61,9 @@ jobs: sleep 2 done - psql -U enterprisedb -d postgres -p 58${{ matrix.pgver }} -c 'CREATE EXTENSION IF NOT EXISTS pgagent;' + - name: Create pgagent extension on Linux + if: ${{ matrix.os == 'ubuntu-22.04' && matrix.pgver <= 16 }} + run: psql -U enterprisedb -d postgres -p 58${{ matrix.pgver }} -c 'CREATE EXTENSION IF NOT EXISTS pgagent;' - name: Install Python dependencies run: make install-python-testing diff --git a/.github/workflows/run-python-tests-epas.yml b/.github/workflows/run-python-tests-epas.yml index 93a4a5cae..c3953a61f 100644 --- a/.github/workflows/run-python-tests-epas.yml +++ b/.github/workflows/run-python-tests-epas.yml @@ -101,8 +101,10 @@ jobs: >&2 echo "EPAS is unavailable - sleeping for 2 seconds" sleep 2 done - - psql -U enterprisedb -d postgres -p 58${{ matrix.pgver }} -c 'CREATE EXTENSION IF NOT EXISTS pgagent;' + + - name: Create pgagent extension on Linux + if: ${{ matrix.os == 'ubuntu-22.04' && matrix.pgver <= 16 }} + run: psql -U enterprisedb -d postgres -p 58${{ matrix.pgver }} -c 'CREATE EXTENSION IF NOT EXISTS pgagent;' - name: Install Python dependencies on Linux if: ${{ matrix.os == 'ubuntu-22.04' }}