diff --git a/.github/workflows/impress.yml b/.github/workflows/impress.yml index 655dccc2e..12b5ae2b9 100644 --- a/.github/workflows/impress.yml +++ b/.github/workflows/impress.yml @@ -110,7 +110,14 @@ jobs: - 5432:5432 # needed because the postgres container does not provide a healthcheck options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5 - + minio: + image: minio/minio + env: + MINIO_ROOT_USER: impress + MINIO_ROOT_PASSWORD: password + ports: + - 9000:9000 + - 9001:9001 env: DJANGO_CONFIGURATION: Test DJANGO_SETTINGS_MODULE: impress.settings @@ -129,6 +136,16 @@ jobs: run: | sudo mkdir -p /data/media && \ sudo mkdir -p /data/static + - name: Configure MinIO + run: | + MINIO=$(docker ps | grep minio/minio | sed -E 's/.*\s+([a-zA-Z0-9_-]+)$/\1/') + docker exec ${MINIO} sh -c \ + "minio server --console-address :9001 /data & sleep 1" + docker exec ${MINIO} sh -c \ + "mc alias set impress http://localhost:9000 impress password && \ + mc alias ls && \ + mc mb impress/impress-media-storage && \ + mc version enable impress/impress-media-storage" - name: Install Python uses: actions/setup-python@v3 with: @@ -142,7 +159,7 @@ jobs: - name: Generate a MO file from strings extracted from the project run: python manage.py compilemessages - name: Run tests - run: ~/.local/bin/pytest -n 2 + run: ~/.local/bin/pytest -k test_api_document_versions i18n-crowdin: runs-on: ubuntu-latest