Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 29 additions & 2 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down
Loading