Skip to content

Commit

Permalink
Get recent CI changes running in 1.9
Browse files Browse the repository at this point in the history
  • Loading branch information
SpacemanPaul committed Aug 19, 2024
1 parent 2ece85e commit 7071bde
Show file tree
Hide file tree
Showing 16 changed files with 3,069 additions and 7 deletions.
1 change: 0 additions & 1 deletion .env_simple
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ POSTGRES_USER=opendatacubeusername
SERVER_DB_USERNAME=opendatacubeusername
POSTGRES_PASSWORD=opendatacubepassword
POSTGRES_DB="odc_postgres,odc_postgis"
READY_PROBE_DB=odc_postgis

#################
# OWS CFG Config
Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,16 +55,15 @@ jobs:
- name: Test and lint dev OWS image
run: |
mkdir artifacts
docker run -e LOCAL_UID=$(id -u $USER) -e LOCAL_GID=$(id -g $USER) -v ${PWD}/artifacts:/mnt/artifacts ${ORG}/${IMAGE}:_builder /bin/sh -c "cd /code;./check-code.sh"
chmod 777 artifacts
docker run -e LOCAL_UID=1000 -e LOCAL_GID=1000 -u ubuntu -v ${PWD}/artifacts:/mnt/artifacts ${ORG}/${IMAGE}:_builder /bin/sh -c "cd /code && ./check-code.sh"
mv ./artifacts/coverage.xml ./artifacts/coverage-unit.xml
- name: Dockerized Integration Pytest
run: |
export LOCAL_UID=$(id -u $USER)
export LOCAL_GID=$(id -g $USER)
export $(grep -v '^#' .env_simple | xargs)
docker compose -f docker-compose.yaml -f docker-compose.db.yaml up -d --wait --build
docker compose -f docker-compose.yaml -f docker-compose.db.yaml exec -T ows_18 /bin/sh -c "cd /code && ./check-code-all.sh"
docker compose -f docker-compose.yaml -f docker-compose.db.yaml exec -u ubuntu -T ows /bin/sh -c "cd /code && ./check-code-all.sh"
docker compose -f docker-compose.yaml -f docker-compose.db.yaml down
- name: Upload All coverage to Codecov
Expand Down
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ RUN EXTRAS=$([ "$ENVIRONMENT" = "deployment" ] || echo ",test") && \
python3-pip))

# Configure user
USER ubuntu
WORKDIR "/home/ubuntu"

ENV GDAL_DISABLE_READDIR_ON_OPEN="EMPTY_DIR" \
Expand Down
153 changes: 153 additions & 0 deletions build-test-db.sh

Large diffs are not rendered by default.

50 changes: 50 additions & 0 deletions constraints.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
datacube[performance,s3]==1.9.0-rc3
flask
requests
affine
click
colour
fsspec
lxml
deepdiff
matplotlib
pyparsing
numpy
scipy
Pillow
Babel
Flask-Babel>3.0.0
psycopg2
python_dateutil
pytz
rasterio>=1.3.2
regex
timezonefinder
python_slugify
geoalchemy2
lark
xarray
pyows
prometheus_flask_exporter
setuptools_scm
pytest
pytest_cov
pytest_localserver
owslib>0.29.2
pytest_mock
pep8
pytest-helpers-namespace
flask-cors
fsspec
pydevd-pycharm~=221.5921.27
pylint>=3.0
sphinx_click
pre-commit
pipdeptree
gunicorn
gunicorn[gevent]
gevent
prometheus_client
sentry_sdk
prometheus_flask_exporter
blinker
Loading

0 comments on commit 7071bde

Please sign in to comment.