From 6d52178de030f387fc6ab903662b108d9490fb93 Mon Sep 17 00:00:00 2001 From: Benjamin Gutzmann Date: Sun, 21 Jun 2020 16:39:51 +0200 Subject: [PATCH] Update and rename workflow.yml to coverage.yml --- .github/workflows/coverage.yml | 31 +++++++++++++++++++++++++++++++ .github/workflows/workflow.yml | 2 -- 2 files changed, 31 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/coverage.yml delete mode 100644 .github/workflows/workflow.yml diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml new file mode 100644 index 000000000..eb0e45854 --- /dev/null +++ b/.github/workflows/coverage.yml @@ -0,0 +1,31 @@ +name: 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.7' + steps: + - uses: actions/checkout@master + - name: Setup Python + uses: actions/setup-python@master + with: + python-version: 3.7.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@v1 + with: + token: ${{ secrets.CODECOV_TOKEN }} + file: ./coverage.xml + flags: pytest + env_vars: OS,PYTHON + name: codecov-umbrella + fail_ci_if_error: true diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml deleted file mode 100644 index b8a977988..000000000 --- a/.github/workflows/workflow.yml +++ /dev/null @@ -1,2 +0,0 @@ -- name: Codecov - uses: codecov/codecov-action@v1.0.7