Fix empty data check in outlier test #532
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: CloudnetPy-QC CI | |
on: [push, pull_request] | |
jobs: | |
build: | |
timeout-minutes: 10 | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.10", "3.11"] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: awalsh128/cache-apt-pkgs-action@v1 | |
with: | |
packages: libudunits2-dev | |
version: 1.0 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
cache: "pip" | |
- name: Install dependencies | |
run: | | |
pip install .[dev,test] | |
- name: Run pre-commit checks | |
if: startsWith(matrix.os, 'ubuntu-') | |
run: | | |
pre-commit run --all-files --show-diff-on-failure | |
- name: Type check | |
run: | | |
mypy cloudnetpy_qc/ tests/ | |
- name: Test with pytest-flakefinder | |
run: | | |
pytest --flake-finder tests/ --flake-runs=2 |