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' }}