Skip to content

chore(api): updated keys #395

chore(api): updated keys

chore(api): updated keys #395

Workflow file for this run

name: Docker Build Check
on:
pull_request:
branches: [main]
workflow_call:
jobs:
tests:
uses: ./.github/workflows/tests.yaml
s3-local-storage-check:
runs-on: ubuntu-latest
env:
STORAGE_BACKEND: s3
S3_BUCKET: openml-upload-local
S3_REGION: eu-west-1
S3_ENDPOINT: http://127.0.0.1:9000
S3_ACCESS_KEY: minioadmin
S3_SECRET_KEY: minioadmin123
S3_FORCE_PATH_STYLE: "true"
CORS_ALLOWED_ORIGINS: http://localhost:5173,http://127.0.0.1:5173
JWT_SECRET: test-jwt-secret
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Start local MinIO
run: |
docker run -d \
--name minio \
-p 9000:9000 \
-p 9001:9001 \
-e MINIO_ROOT_USER=minioadmin \
-e MINIO_ROOT_PASSWORD=minioadmin123 \
-e MINIO_API_CORS_ALLOW_ORIGIN=http://localhost:5173,http://127.0.0.1:5173 \
minio/minio:latest server /data --console-address ":9001"
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install backend dependencies
run: pip install -r backend/requirements.txt
- name: Configure local S3 bucket
run: python backend/scripts/setup_local_s3.py
- name: Run backend S3 checks
working-directory: backend
run: |
pytest \
app/tests/unit/storage/test_config_and_factory.py \
app/tests/unit/storage/test_s3_storage.py \
app/tests/integration/test_app_storage_wiring.py \
--no-cov
build-check:
needs:
- tests
- s3-local-storage-check
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Test Docker build
uses: docker/build-push-action@v5
with:
context: .
file: backend/Dockerfile
push: false
cache-from: type=gha
cache-to: type=gha,mode=max