-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
53 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
name: nightly-ci | ||
on: | ||
schedule: | ||
# Run at 1:14 am every night, to avoid high load at common schedule times. | ||
- cron: "14 1 * * *" | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-22.04 | ||
services: | ||
postgres: | ||
image: postgis/postgis:14-3.3 | ||
env: | ||
POSTGRES_DB: django | ||
POSTGRES_PASSWORD: postgres | ||
ports: | ||
- 5432:5432 | ||
rabbitmq: | ||
image: rabbitmq:management | ||
ports: | ||
- 5672:5672 | ||
minio: | ||
image: bitnami/minio:latest | ||
env: | ||
MINIO_ROOT_USER: minioAccessKey | ||
MINIO_ROOT_PASSWORD: minioSecretKey | ||
ports: | ||
- 9000:9000 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.10" | ||
- name: Install tox | ||
run: | | ||
pip install --upgrade pip | ||
pip install tox | ||
- name: Install GDAL | ||
run: | | ||
sudo apt-add-repository ppa:ubuntugis/ppa | ||
sudo apt-get update | ||
sudo apt-get install gdal-bin libgdal-dev | ||
pip install GDAL==`gdal-config --version` | ||
- name: Run tests | ||
run: | | ||
tox -e test -- -k "slow" | ||
env: | ||
DJANGO_DATABASE_URL: postgres://postgres:postgres@localhost:5432/django | ||
DJANGO_MINIO_STORAGE_ENDPOINT: localhost:9000 | ||
DJANGO_MINIO_STORAGE_ACCESS_KEY: minioAccessKey | ||
DJANGO_MINIO_STORAGE_SECRET_KEY: minioSecretKey | ||
DJANGO_HOMEPAGE_REDIRECT_URL: http://localhost:8080/ |