Skip to content

Commit

Permalink
fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
sampaccoud committed Apr 22, 2024
1 parent 47012db commit d414eff
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions .github/workflows/impress.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand All @@ -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
Expand Down

0 comments on commit d414eff

Please sign in to comment.