Skip to content

observingClouds is testing the code #28

observingClouds is testing the code

observingClouds is testing the code #28

Workflow file for this run

name: Tests
run-name: ${{ github.actor }} is testing the code
on:
push:
branches: [ main ]
pull_request:
workflow_dispatch:
jobs:
tests:
runs-on: ubuntu-latest
strategy:
max-parallel: 5
matrix:
python-version: ["3.10", "3.11", "3.12"]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up conda
uses: conda-incubator/[email protected]
with:
auto-update-conda: false
channels: conda-forge
miniforge-variant: Mambaforge
activate-environment: test
python-version: ${{ matrix.python-version }}
- name: Install package
run: pip install -e .[tests]
- name: Conda info
run: conda info
- name: Conda list
run: conda list
- name: Test with pytest
run: pytest
- name: Run coverage tests
run: pytest --cov=ecmwfspec --cov-fail-under=50