From 305864d8e9d4efdfeb809dfd9c2fca7b3649e109 Mon Sep 17 00:00:00 2001 From: devtmaz Date: Wed, 17 Jun 2026 16:13:19 +0200 Subject: [PATCH 1/3] =?UTF-8?q?=F0=9F=93=9D=20add=20ci-cd=20diagram?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/cicd-workflow.drawio | 162 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 162 insertions(+) create mode 100644 docs/cicd-workflow.drawio 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 From ab6155311da78680813307299ccdebc96787aefb Mon Sep 17 00:00:00 2001 From: devtmaz Date: Wed, 17 Jun 2026 16:13:35 +0200 Subject: [PATCH 2/3] =?UTF-8?q?=E2=9C=A8=20add=20ci=20workflow?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ci-workflow.yml | 40 +++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .github/workflows/ci-workflow.yml diff --git a/.github/workflows/ci-workflow.yml b/.github/workflows/ci-workflow.yml new file mode 100644 index 0000000..4463d9c --- /dev/null +++ b/.github/workflows/ci-workflow.yml @@ -0,0 +1,40 @@ +name: Unit Tests on Pull Request + +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: | + pip install pytest pytest-cov + 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/ From a3acdfc878e2a5f4758221d0be1a714774dc0afe Mon Sep 17 00:00:00 2001 From: devtmaz Date: Wed, 17 Jun 2026 16:21:37 +0200 Subject: [PATCH 3/3] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20update=20workflow=20na?= =?UTF-8?q?me=20and=20remove=20pytest=20installation=20step?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ci-workflow.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/ci-workflow.yml b/.github/workflows/ci-workflow.yml index 4463d9c..9d3855f 100644 --- a/.github/workflows/ci-workflow.yml +++ b/.github/workflows/ci-workflow.yml @@ -1,4 +1,4 @@ -name: Unit Tests on Pull Request +name: CI Workflow on: pull_request: @@ -25,7 +25,6 @@ jobs: - name: Run unit tests with coverage run: | - pip install pytest pytest-cov pytest tests/ \ --disable-warnings \ --cov=src \