Skip to content

Commit

Permalink
Specific repository only
Browse files Browse the repository at this point in the history
  • Loading branch information
fizyk committed Mar 17, 2021
1 parent 3059bb4 commit 1998cbd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,14 @@ 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 ${{ matrix.postgres-version }}" > /etc/apt/sources.list.d/pgdg.list'
sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
sudo sh -c 'echo "Package: *" > /etc/apt/preferences.d/psql'
sudo sh -c 'echo "Pin: release c=${{ matrix.poxtgresql-version }}" >> /etc/apt/preferences.d/psql'
sudo sh -c 'echo "Pin-Priority: 1000" >> /etc/apt/preferences.d/psql'
sudo apt update
sudo apt install -y postgresql-${{ matrix.postgres-version }}
sudo apt install -y postgresql-${{ matrix.postgres-version }} libpq
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand Down

0 comments on commit 1998cbd

Please sign in to comment.