observingClouds is testing the code #64
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |