Skip to content

Commit 68f4a96

Browse files
matteogreekcopernico
authored andcommitted
fix python.yml
1 parent 352076b commit 68f4a96

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

.github/workflows/python.yml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,22 @@ jobs:
3838
ports:
3939
# Maps tcp port 5432 on service container to the host
4040
- 5432:5432
41-
volumes:
42-
- ${{ github.workspace }}/prospector/ddl:/docker-entrypoint-initdb.d
41+
#volumes:
42+
# - ${{ github.workspace }}/prospector/ddl:/docker-entrypoint-initdb.d
4343
steps:
44-
- uses: actions/checkout@v3
44+
- name: Checkout code
45+
uses: actions/checkout@v3
46+
- name: Install PostgreSQL client
47+
run: |
48+
sudo apt-get update
49+
sudo apt-get install --yes postgresql-client
50+
51+
- name: Set up Postgres tables
52+
run: |
53+
psql -h localhost -U postgres -d postgres -f prospector/ddl/10_commit.sql
54+
psql -h localhost -U postgres -d postgres -f prospector/ddl/20_users.sql
55+
env:
56+
PGPASSWORD: example
4557
- name: Set up Python 3.10
4658
uses: actions/setup-python@v4
4759
with:

0 commit comments

Comments
 (0)