Skip to content

Commit

Permalink
fix python.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
matteogreek authored and copernico committed Jun 5, 2023
1 parent 352076b commit 68f4a96
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,22 @@ jobs:
ports:
# Maps tcp port 5432 on service container to the host
- 5432:5432
volumes:
- ${{ github.workspace }}/prospector/ddl:/docker-entrypoint-initdb.d
#volumes:
# - ${{ github.workspace }}/prospector/ddl:/docker-entrypoint-initdb.d
steps:
- uses: actions/checkout@v3
- name: Checkout code
uses: actions/checkout@v3
- name: Install PostgreSQL client
run: |
sudo apt-get update
sudo apt-get install --yes postgresql-client
- name: Set up Postgres tables
run: |
psql -h localhost -U postgres -d postgres -f prospector/ddl/10_commit.sql
psql -h localhost -U postgres -d postgres -f prospector/ddl/20_users.sql
env:
PGPASSWORD: example
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
Expand Down

0 comments on commit 68f4a96

Please sign in to comment.