diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 5cb939c5..9033659f 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -27,10 +27,10 @@ jobs: python-version: ${{ matrix.python-version }} - name: Install postgresql run: | - sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list' + sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg ${{ matrix.postgres-version }}" > /etc/apt/sources.list.d/pgdg.list' wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add - sudo apt update - sudo apt install -y postgresql-${{ matrix.postgres-version }} + sudo apt install -y postgresql-${{ matrix.postgres-version }} postgresql-common - name: Install dependencies run: | python -m pip install --upgrade pip