From 1b571509d07e858d97afd0577d20cdc1baf56986 Mon Sep 17 00:00:00 2001 From: Amrasil Date: Wed, 26 Mar 2025 22:29:09 +0100 Subject: [PATCH] change(feat/OPS-31): forgot about poetry --- .github/workflows/ci.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..d8083ba --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,33 @@ +name: CI # Name of the workflow + +on: + push: + branches: + - devel + - master + - feat/OPS-31 + +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: poetry install + + - name: Run tests with coverage + run: poetry run coverage run -m pytest + + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v3 + with: + token: ${{ secrets.CODECOV_TOKEN }} + file: ./coverage.xml