diff --git a/.github/workflows/ci-workflow.yml b/.github/workflows/ci-workflow.yml new file mode 100644 index 0000000..9d3855f --- /dev/null +++ b/.github/workflows/ci-workflow.yml @@ -0,0 +1,39 @@ +name: CI Workflow + +on: + pull_request: + branches: + - main + +jobs: + test: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Set up Python 3.11 + uses: actions/setup-python@v4 + with: + python-version: '3.11' + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements-pyspark.txt + + - name: Run unit tests with coverage + run: | + pytest tests/ \ + --disable-warnings \ + --cov=src \ + --cov-config=.coveragerc \ + --cov-report=html + + - name: Upload coverage report + uses: actions/upload-artifact@v4 + if: always() + with: + name: coverage-report + path: htmlcov/ diff --git a/docs/cicd-workflow.drawio b/docs/cicd-workflow.drawio new file mode 100644 index 0000000..50b9a4b --- /dev/null +++ b/docs/cicd-workflow.drawio @@ -0,0 +1,162 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file