Skip to content

Merge branch 'main' into dependabot/github_actions/codecov/codecov-ac… #97

Merge branch 'main' into dependabot/github_actions/codecov/codecov-ac…

Merge branch 'main' into dependabot/github_actions/codecov/codecov-ac… #97

Workflow file for this run

name: Run tests
on:
- push
- pull_request
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
python-version: ["3.10", "3.11", "3.12"]
experimental: [false]
steps:
- name: Checkout source
uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
pip install -U pytest pytest-cov numpy pyresample pyorbital six pyyaml defusedxml
- name: Install pytroll-collectors
run: |
pip install --no-deps -e .
- name: Run tests
run: |
pytest --cov=trollsched trollsched/tests --cov-report=xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
with:
file: ./coverage.xml
env_vars: PYTHON_VERSION