Skip to content

Cleanup duplicate CDR logic from pm_icecon #29

Cleanup duplicate CDR logic from pm_icecon

Cleanup duplicate CDR logic from pm_icecon #29

Workflow file for this run

name: CI
on:
pull_request:
push:
branches:
- main
# Default to bash in login mode; key to activating conda environment
# https://github.com/mamba-org/provision-with-micromamba#IMPORTANT
defaults:
run:
shell: "bash -l {0}"
jobs:
test:
name: "Run tests"
runs-on: "ubuntu-latest"
steps:
- name: "Check out repository"
uses: "actions/checkout@v3"
- name: "Install Conda environment"
uses: "mamba-org/setup-micromamba@v1"
with:
environment-file: "conda-lock.yml"
# When using a lock-file, we have to set an environment name.
environment-name: "seaice_ecdr-ci"
cache-environment: true
# Increase this key to trigger cache invalidation
cache-environment-key: 1
- name: "Check out pm_icecon repository"
uses: "actions/checkout@v3"
with:
repository: "nsidc/pm_icecon"
ref: "main"
path: "pm_icecon"
- name: "Check out pm_tb_data repository"
uses: "actions/checkout@v3"
with:
repository: "nsidc/pm_tb_data"
ref: "main"
path: "pm_tb_data"
# Linter
- name: "Run pre-commit tests"
run: "pre-commit run --all-files"
# Unit tests
- name: "Run mypy"
run: "PYTHONPATH=/home/runner/work/seaice_ecdr/seaice_ecdr/pm_icecon/:/home/runner/work/seaice_ecdr/seaice_ecdr/pm_tb_data/ mypy"
# Unit tests
# - name: "Run unit tests"
# run: "PYTHONPATH=/home/runner/work/seaice_ecdr/seaice_ecdr/pm_icecon/:/home/runner/work/seaice_ecdr/seaice_ecdr/pm_tb_data/ python -m pytest seaice_ecdr/tests/unit/"