Skip to content

feat: configure Prometheus and Grafana monitoring setup #11

feat: configure Prometheus and Grafana monitoring setup

feat: configure Prometheus and Grafana monitoring setup #11

Workflow file for this run

name: CI Pipeline
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.11'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install pytest pytest-cov
- name: Run tests with coverage
run: |
pytest --cov=./ --cov-report=xml
continue-on-error: true
# Add this new step here
- name: Post-test status
run: |
echo "Tests completed. Moving to Docker build steps..."
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
files: ./coverage.xml
flags: unittests
fail_ci_if_error: false
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@v4
with:
context: .
push: true
tags: |
paulyi1/secure-healthcare-data-pipeline:latest
paulyi1/secure-healthcare-data-pipeline:${{ github.sha }}