Skip to content

Commit

Permalink
fixed ci-cd
Browse files Browse the repository at this point in the history
  • Loading branch information
ak8000 committed Apr 30, 2024
1 parent 33540c0 commit 1f77209
Showing 1 changed file with 21 additions and 4 deletions.
25 changes: 21 additions & 4 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand Down

0 comments on commit 1f77209

Please sign in to comment.