increase speed, decrease memory usage using dataarray selection #25
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: Validate Inflow NetCDFs | |
on: | |
[pull_request, workflow_dispatch] | |
jobs: | |
test: | |
name: Test New Code Outputs vs Old Outputs | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
shell: bash -l {0} # For conda envs: https://github.com/marketplace/actions/setup-miniconda#important | |
steps: | |
- name: Check Out Code | |
uses: actions/checkout@v3 | |
- name: Set up Python 3.11 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.11 | |
- name: Create environment with mamba | |
uses: conda-incubator/setup-miniconda@v2 | |
with: | |
mamba-version: "*" | |
channels: conda-forge,defaults | |
auto-activate-base: false | |
activate-environment: inflows | |
environment-file: environment.yml | |
- name: Run Tests | |
run: | | |
python ./tests/tests.py |