Skip to content

Commit

Permalink
create fractal user
Browse files Browse the repository at this point in the history
  • Loading branch information
ychiucco committed Dec 9, 2024
1 parent c15b7d3 commit 479af52
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,16 @@ jobs:
# run: sudo systemctl start postgresql.service

- uses: ikalnytskyi/action-setup-postgres@v7
id: postgres
with:
database: pytest-fractal-client

- name: Create fractal user
run: |
psql ${{ steps.postgres.outputs.connection-uri }} -c "CREATE USER fractal WITH PASSWORD 'postgres';"
psql ${{ steps.postgres.outputs.connection-uri }} -c "GRANT ALL PRIVILEGES ON DATABASE \"pytest-fractal-client\" TO fractal;"
psql ${{ steps.postgres.outputs.connection-uri }} -c "ALTER USER fractal CREATEDB;"
- name: Test with pytest
env:
COVERAGE_FILE: coverage-data-${{ matrix.python-version }}
Expand Down

0 comments on commit 479af52

Please sign in to comment.