From cb8d67a94ae676d051ca885f597198fb35be7fb8 Mon Sep 17 00:00:00 2001 From: ARYAN-NIKNEZHAD Date: Thu, 15 Aug 2024 07:52:56 +0430 Subject: [PATCH 1/2] :green_heart: feat: Add-CI-Actions --- .github/workflows/ci.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 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..34e4147 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,28 @@ +name: CI + +on: [push, pull_request] + +jobs: + test: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: '3.x' + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install coverage codecov pytest + pip install -r requirements.txt + - name: Run tests + run: | + coverage run -m pytest + - name: Generate coverage report + run: coverage xml + - name: Upload coverage to Codecov + run: codecov + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} \ No newline at end of file From 1a98b435843055a405d1e86b2586e78d121e7b03 Mon Sep 17 00:00:00 2001 From: ARYAN-NIKNEZHAD Date: Thu, 15 Aug 2024 07:55:33 +0430 Subject: [PATCH 2/2] :green_heart: fix: CI-Actions --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 34e4147..86406f5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,7 +16,7 @@ jobs: run: | python -m pip install --upgrade pip pip install coverage codecov pytest - pip install -r requirements.txt + pip install -r packages/requirements-dev.txt - name: Run tests run: | coverage run -m pytest