From 49baf0001b29b9d38293969c206ba39df0eaf783 Mon Sep 17 00:00:00 2001 From: Amrasil Date: Wed, 26 Mar 2025 22:10:02 +0100 Subject: [PATCH] add(feat/OPS-31): code coverage for ci --- .github/workflows/ci.yml | 31 +++++++++++++++++++++++++++++++ senju/__init__.py | 0 2 files changed, 31 insertions(+) create mode 100644 .github/workflows/ci.yml create mode 100644 senju/__init__.py diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..904d60e --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,31 @@ +name: CI # Name of the workflow + +on: + pull_request: + branches: + - devel # Runs only when a pull request targets the 'devel' branch + +jobs: + test: # Defines a job called "test" + runs-on: ubuntu-latest # The job runs on the latest Ubuntu runner + + steps: + - name: Checkout Repository + uses: actions/checkout@v3 + + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: '3.10' + + - name: Install dependencies + run: pip install -r requirements.txt + + - name: Run tests with coverage + run: pytest --cov=senju --cov-report=xml + + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v3 + with: + token: ${{ secrets.CODECOV_TOKEN }} + file: ./coverage.xml diff --git a/senju/__init__.py b/senju/__init__.py new file mode 100644 index 0000000..e69de29