diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index 84312db..855d45d 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -3,6 +3,31 @@ name: Run checks on: [pull_request] jobs: + codecov-of-main: + name: codecov of main + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + ref: main + - name: Setup Python + uses: actions/setup-python@v4 + with: + python-version: "3.11" + - name: Install dependencies + run: | + python -m pip install --upgrade pip + python -m pip install .[dev] + - name: Generate coverage report + run: python -m pytest --cov --cov-report=xml + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v5 + with: + fail_ci_if_error: false + token: ${{ secrets.CODECOV_TOKEN }} + slug: Stoops-ML/czml3 + verbose: true + tox-checks: runs-on: ubuntu-latest strategy: @@ -21,8 +46,10 @@ jobs: - name: Test with tox run: tox - codecov: - name: codecov + codecov-of-PR: + name: codecov of PR + needs: + - codecov-of-main runs-on: ubuntu-latest steps: - uses: actions/checkout@v4