Skip to content

Commit

Permalink
#53: Fixed the psycopg2 requirement
Browse files Browse the repository at this point in the history
  • Loading branch information
hkage committed Mar 15, 2024
1 parent 5868814 commit 154a3f4
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,12 @@ jobs:
run: |
echo "PYTHON=$(echo '${{ matrix.image }}' | sed -r 's/^python:([0-9]+)\.([0-9]+).*$/\1.\2/g')" >> $GITHUB_ENV
echo "TOXFACTOR=$(echo '${{ matrix.image }}' | sed -r 's/^python:([0-9]+)\.([0-9]+).*$/py\1\2/g')" >> $GITHUB_ENV
- name: Install psycopg2 requirements
run: apt-get install python-dev
- name: Install psycopg2 requirements (Python 2)
run: apt-get install python2-dev
if: matrix.image == 'python:2.7-buster'
- name: Install psycopg2 requirements (Python 3)
run: apt-get install python3-dev
if: matrix.image != 'python:2.7-buster'
- name: Install importlib-metadata for older Python versions
run: pip install "importlib-metadata<3"
if: >-
Expand Down

0 comments on commit 154a3f4

Please sign in to comment.