Pre-Initialize model xarray with timesteps #46
Workflow file for this run
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: tests | |
on: | |
pull_request: | |
jobs: | |
run: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
python-version: ["3.11"] | |
os: [ubuntu-latest] # windows-latest, ubuntu-latest, macos-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Micromamba | |
uses: mamba-org/provision-with-micromamba@v15 | |
with: | |
environment-file: false | |
- name: Python ${{ matrix.python-version }} | |
shell: bash -l {0} | |
run: > | |
micromamba create --name DEV_ENV python=${{ matrix.python-version }} --file environment.yml --channel conda-forge | |
&& micromamba activate DEV_ENV | |
&& pip install -e . --no-deps --force-reinstall | |
&& micromamba info | |
&& micromamba list | |
- name: tests | |
shell: bash -l {0} | |
run: > | |
micromamba activate DEV_ENV | |
&& pytest --cov=clearwater_modules --cov-report=xml tests/ | |
- name: Upload coverage reports to CodeCov | |
uses: codecov/codecov-action@v3 | |
env: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |