Skip to content

ADD: Adding colormaps for cmweather #8

ADD: Adding colormaps for cmweather

ADD: Adding colormaps for cmweather #8

Workflow file for this run

name: CI
on:
push:
branches:
- "main"
pull_request:
branches:
- "*"
schedule:
- cron: "0 0 * * *" # Daily “At 00:00”
workflow_dispatch: # allows you to trigger manually
jobs:
build:
name: ${{ matrix.os }}-${{ matrix.python-version }}
if: github.repository == 'openradar/cmweather'
runs-on: ${{ matrix.os }}-latest
defaults:
run:
shell: bash -l {0}
strategy:
fail-fast: false
matrix:
os: ["ubuntu-latest"]
python-version: ["3.7", "3.8", "3.9"]
steps:
# Install dependencies
- name: Setup Conda Environment
- uses: mamba-org/setup-micromamba@v1
with:
activate-environment: cmweather-dev
python-version: ${{ matrix.python-version }}
cache-downloads: true
environment-file: ci/environment.yml
- name: Fetch all history for all tags and branches
run: |
git fetch --prune --unshallow
- name: Set up conda environment
shell: bash -l {0}
run: |
python -m pip install -e . --no-deps --force-reinstall
- name: Run Tests
shell: bash -l {0}
run: |
pytest --cov=./ --cov-report=xml
- name: Upload code coverage to Codecov
uses: codecov/codecov-action@v1
with:
file: ./coverage.xml
flags: unittests
env_vars: RUNNER_OS,PYTHON_VERSION
name: codecov-umbrella
fail_ci_if_error: false
docs-build:
name: Documentation build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install package
run: |
python -m pip install --upgrade pip
python -m pip install -e .
- name: Install documentation dependencies
run: |
python -m pip install -r docs/requirements-docs.txt
- name: Build docs
run: |
cd docs
make html