From 15e8629022bf65a59e35caca4aa922aab0dd7cd9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Er=C3=A7etin=20G=C3=BCler?= Date: Sun, 28 Aug 2022 04:43:12 +0300 Subject: [PATCH] =?UTF-8?q?Update=20and=20rename=20.github/i=C5=9F=20ak?= =?UTF-8?q?=C4=B1=C5=9Flar=C4=B1/worklflow.yml=20to=20.github/i=C5=9F=20ko?= =?UTF-8?q?llar=C4=B1/worklflow.yml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Erçetin Güler --- .github/iş akışları/worklflow.yml | 10 --------- .github/iş kolları/worklflow.yml | 34 +++++++++++++++++++++++++++++++ 2 files changed, 34 insertions(+), 10 deletions(-) delete mode 100644 .github/iş akışları/worklflow.yml create mode 100644 .github/iş kolları/worklflow.yml diff --git a/.github/iş akışları/worklflow.yml b/.github/iş akışları/worklflow.yml deleted file mode 100644 index fec72a9..0000000 --- a/.github/iş akışları/worklflow.yml +++ /dev/null @@ -1,10 +0,0 @@ -steps: -- uses: actions/checkout@master -- uses: codecov/codecov-action@v2 - with: - token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos - files: ./coverage1.xml,./coverage2.xml # optional - flags: unittests # optional - name: codecov-umbrella # optional - fail_ci_if_error: true # optional (default = false) - verbose: true # optional (default = false) diff --git a/.github/iş kolları/worklflow.yml b/.github/iş kolları/worklflow.yml new file mode 100644 index 0000000..f3d853a --- /dev/null +++ b/.github/iş kolları/worklflow.yml @@ -0,0 +1,34 @@ +name: Example workflow for Codecov +on: [push] +jobs: + run: + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest, macos-latest, windows-latest] + env: + OS: ${{ matrix.os }} + PYTHON: '3.7' + steps: + - uses: actions/checkout@master + - name: Setup Python + uses: actions/setup-python@master + with: + python-version: 3.7 + - name: Generate coverage report + run: | + pip install pytest + pip install pytest-cov + pytest --cov=./ --cov-report=xml + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v2 + with: + token: ${{ secrets.CODECOV_TOKEN }} + directory: ./coverage/reports/ + env_vars: OS,PYTHON + fail_ci_if_error: true + files: ./coverage1.xml,./coverage2.xml + flags: unittests + name: codecov-umbrella + path_to_write_report: ./coverage/codecov_report.txt + verbose: true