Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
MYSQL_USER=plants_user
MYSQL_ROOT_PASSWORD=mlops
MYSQL_DATABASE=plants
MYSQL_PASSWORD=mlops_project
MYSQL_HOST_PORT=3306


MINIO_ACCESS_KEY=minioadmin
MINIO_SECRET_KEY= ##
MINIO_BUCKET_NAME=mlops-bucket
MINIO_API_PORT=9000
MINIO_CONSOLE_PORT=9001

POSTGRES_USER=airflow
POSTGRES_PASSWORD=airflow
POSTGRES_DB=airflow
POSTGRES_PORT=5432

AIRFLOW__CORE__EXECUTOR=LocalExecutor
AIRFLOW__CORE__FERNET_KEY= ##
AIRFLOW_USERNAME=airflow
AIRFLOW_PASSWORD=airflow
AIRFLOW_EMAIL=contact@airflow.com
AIRFLOW_WEBSERVER_PORT=8080

MLFLOW_PORT=5000


API_PORT=8000
WEBAPP_PORT=8501
42 changes: 42 additions & 0 deletions .github/workflows/docker-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Tests dans Docker

on:
push:
branches: [ main, dev ]
pull_request:
branches: [ main ]

jobs:
docker-tests:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Create test environment file
run: |
cp .env.example .env

- name: Run tests in Docker
run: |
chmod +x scripts/run_tests_docker.sh
./scripts/run_tests_docker.sh

- name: Upload test results
uses: actions/upload-artifact@v4
if: always()
with:
name: test-results
path: test-results/

- name: Publish test results
uses: dorny/test-reporter@v1
if: always()
with:
name: Docker Tests Results
path: test-results/junit.xml
reporter: java-junit
Loading
Loading