-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #157 from tobac-project/dev
Merge `dev` into `main` for v1.3.2
- Loading branch information
Showing
8 changed files
with
107 additions
and
7 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[run] | ||
source=tobac | ||
omit = tobac/tests/* |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: Codecov CI | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
run: | ||
runs-on: ubuntu-latest | ||
env: | ||
OS: ubuntu-latest | ||
PYTHON: '3.9' | ||
steps: | ||
- uses: actions/checkout@v2 | ||
# Similar to MetPy install-conda action | ||
- name: Set up conda | ||
uses: conda-incubator/setup-miniconda@v2 | ||
with: | ||
miniforge-version: latest | ||
miniforge-variant: mambaforge | ||
channel-priority: strict | ||
channels: conda-forge | ||
show-channel-urls: true | ||
use-only-tar-bz2: true | ||
|
||
- name: Install dependencies and generate report | ||
shell: bash -l {0} | ||
run: mamba install --quiet --yes --file conda-requirements.txt coverage pytest-cov && | ||
python -m coverage run -m pytest --cov=./ --cov-report=xml | ||
- name: Upload Coverage to Codecov | ||
uses: codecov/codecov-action@v2 | ||
with: | ||
fail_ci_if_error: true | ||
flags: unittests | ||
|
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
FROM mambaorg/micromamba | ||
ARG MAMBA_DOCKERFILE_ACTIVATE=1 | ||
|
||
RUN micromamba install -y -n base -c conda-forge numpy \ | ||
scipy scikit-image pandas pytables matplotlib iris \ | ||
cf-units xarray cartopy trackpy numba pytest pip \ | ||
pytest-cov coverage | ||
|
||
COPY . ./ | ||
|
||
RUN pip install . | ||
|
||
RUN coverage run -m pytest --cov-report=xml &&\ | ||
mv coverage.xml shared | ||
|
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
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