Skip to content

Commit

Permalink
Merge branch 'staging' into feat-rnu-package
Browse files Browse the repository at this point in the history
  • Loading branch information
alexisig authored Jul 3, 2024
2 parents dfa106b + 8eb7e95 commit a2a22e3
Show file tree
Hide file tree
Showing 22 changed files with 150 additions and 973 deletions.
19 changes: 1 addition & 18 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,28 +48,11 @@ jobs:
- run: curl https://raw.githubusercontent.com/pypa/pipenv/master/get-pipenv.py | python
- uses: nyurik/action-setup-postgis@v1
id: pg
- uses: scalingo-community/[email protected]
with:
region: 'osc-fr1'
api_token: ${{ secrets.scalingo_api_token }}
app_name: 'sparte-staging'
- name: Cache DB Backup
id: cache-db-backup
uses: actions/cache@v4
with:
path: dump.tar.gz
key: db-backup
- name: Download DB Backup
if: steps.cache-db-backup.outputs.cache-hit != 'true'
run: scalingo --addon ad-bcec570b-e20a-4678-9cfc-7e715ef86d76 backups-download --output dump.tar.gz
- run: tar -xzvf dump.tar.gz -O > dump.pgsql
- run: psql -c "ALTER ROLE postgres SUPERUSER;"
- run: createdb test_postgres
- run: pg_restore --dbname test_postgres --no-owner --no-privileges --no-tablespaces --no-comments --clean --if-exists "dump.pgsql"
- run: pipenv install --dev
- run: sudo apt-add-repository ppa:ubuntugis/ubuntugis-unstable
- run: sudo apt-get update
- run: sudo apt-get install -y gdal-bin libgdal-dev
- run: pipenv run python -Wa manage.py test --keepdb
- run: pipenv run python -Wa manage.py test
env:
DATABASE_URL: ${{ steps.pg.outputs.connection-uri }}
Loading

0 comments on commit a2a22e3

Please sign in to comment.