Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connected to CLINT data repo & added plotting #10

Closed
wants to merge 13 commits into from
30 changes: 21 additions & 9 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,36 @@

name: build ⚙️

on: [ push, pull_request ]

jobs:
build:

name: Conda Build with Python${{ matrix.python-version }}
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11"]
defaults:
run:
shell: bash -l {0}
steps:
- name: Checkout repository and submodules
uses: actions/checkout@v2
with:
submodules: recursive
- uses: actions/checkout@v3
- name: Install packages
run: |
sudo apt-get -y install pandoc
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
sudo apt-get -y install pandoc graphviz
- name: Setup Conda (Micromamba) with Python${{ matrix.python-version }}
uses: mamba-org/setup-micromamba@v1
with:
python-version: ${{ matrix.python-version }}
cache-downloads: true
cache-environment: true
environment-file: environment.yml
create-args: >-
conda
python=${{ matrix.python-version }}
- name: Conda and Mamba versions
run: |
conda --version
echo "micromamba: $(micromamba --version)"
- name: Install requirements 📦
run: |
python -m pip install --upgrade pip
Expand All @@ -33,6 +42,9 @@ jobs:
- name: Lint with flake8 ⚙️
run: make lint
if: matrix.python-version == 3.9
# - name: Check formatting with black ⚙️
# run: black --check --target-version py39 rook tests
# if: matrix.python-version == 3.9
- name: Build docs 🏗️
run: make docs
if: matrix.python-version == 3.9
Expand Down
2 changes: 2 additions & 0 deletions environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ dependencies:
- birdy
- tensorflow=2.15.0
- numpy=1.26.0
- metview
- eccodes
# tests
- pytest
- pandoc
4 changes: 3 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,6 @@ birdy
tensorflow
scipy
ipykernel
numpy
numpy
metview
eccodes
6 changes: 1 addition & 5 deletions requirements_dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,4 @@ bump2version
Click
cruft
# Changing dependencies above this comment will create merge conflicts when updating the cookiecutter template with cruft. Add extra requirements below this line.
birdy
tensorflow
scipy
ipykernel
numpy
birdy
2 changes: 0 additions & 2 deletions shearwater/processes/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# from .wps_say_hello import SayHello
from .wps_cyclone import Cyclone

processes = [
# SayHello(),
Cyclone(),
]
Loading
Loading