From e967b2d0d6a58120a5add7c5fad3fceb4b8ca2b5 Mon Sep 17 00:00:00 2001 From: Elshindr Date: Tue, 25 Aug 2026 19:48:03 +0200 Subject: [PATCH 1/3] test ingestion --- .github/workflows/ci.yml | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c1f6dc0..1eaf255 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -4,10 +4,27 @@ on: pull_request: branches: [main] push: - branches: [main, dev_noeline_beta] + branches: [main, dev_beta] jobs: + test_ingestion: + name: Tests Ingestion + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - name: Installer les dépendances Python + working-directory: ingestion + run: | + python3 -m venv venv + source venv/bin/activate + pip install -r requirements.txt + - name: Run les tests + working-directory: ingestion + run: | + pytest tests/ -v + test-api: name: Tests API runs-on: ubuntu-latest @@ -87,6 +104,7 @@ jobs: needs: - test-api - test-front + - test_ingestion strategy: matrix: From 722fcd2df8931aa996fa168a54f0f6e6fc0d22d5 Mon Sep 17 00:00:00 2001 From: Elshindr Date: Tue, 25 Aug 2026 19:51:17 +0200 Subject: [PATCH 2/3] tests ingestion --- .github/workflows/ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1eaf255..bfb2f90 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -23,6 +23,7 @@ jobs: - name: Run les tests working-directory: ingestion run: | + source venv/bin/activate pytest tests/ -v test-api: From a4256c1e7fab55f922241b5c62af73b5f353b2bb Mon Sep 17 00:00:00 2001 From: Elshindr Date: Wed, 26 Aug 2026 18:29:22 +0200 Subject: [PATCH 3/3] ci docker registry --- .github/workflows/ci.yml | 23 ++++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bfb2f90..6b53ce3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -99,7 +99,7 @@ jobs: build-images: - name: Build Docker Images + name: Build & Push Docker Images runs-on: ubuntu-latest needs: @@ -107,6 +107,10 @@ jobs: - test-front - test_ingestion + permissions: + contents: read + packages: write + strategy: matrix: include: @@ -123,10 +127,19 @@ jobs: - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 - - name: Build ${{ matrix.service }} - uses: docker/build-push-action@v5 + - name: Login to GHCR + uses: docker/login-action@v3 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + + - name: Build and push ${{ matrix.service }} + uses: docker/build-push-action@v6 with: context: . file: ${{ matrix.dockerfile }} - push: false - tags: ${{ matrix.service }}:test \ No newline at end of file + push: true + tags: | + ghcr.io/${{ github.repository_owner }}/dora_beta-${{ matrix.service }}:latest + ghcr.io/${{ github.repository_owner }}/dora_beta-${{ matrix.service }}:${{ github.sha }} \ No newline at end of file