From 1f77209bbbdb6ac857022694f2992156f7f0ad29 Mon Sep 17 00:00:00 2001 From: ak8000 Date: Tue, 30 Apr 2024 19:19:52 -0400 Subject: [PATCH] fixed ci-cd --- .github/workflows/ci-cd.yml | 25 +++++++++++++++++++++---- 1 file changed, 21 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci-cd.yml b/.github/workflows/ci-cd.yml index f6d9089..4af56d6 100644 --- a/.github/workflows/ci-cd.yml +++ b/.github/workflows/ci-cd.yml @@ -26,13 +26,29 @@ jobs: with: python-version: '3.8' - - name: Install dependencies + # Install and test dependencies for the Machine Learning Client + - name: Install dependencies for ML client run: | + cd machine-learning-client pip install -r requirements.txt - pip install pytest # or any other needed testing libraries + pip install pytest - - name: Run unit tests - run: pytest + - name: Run unit tests for ML client + run: | + cd machine-learning-client + pytest + + # Install and test dependencies for the Web App + - name: Install dependencies for Web App + run: | + cd web-app + pip install -r requirements.txt + pip install pytest + + - name: Run unit tests for Web App + run: | + cd web-app + pytest - name: Set up Docker Buildx uses: docker/setup-buildx-action@v1 @@ -43,6 +59,7 @@ jobs: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_ACCESS_TOKEN }} + # Build and push Docker images for each subsystem - name: Build and push machine learning client Docker image uses: docker/build-push-action@v2 with: