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

Add conda dev env and pytest settings in setup.cfg #784

Merged
merged 5 commits into from
Nov 2, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions conda-env/dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Conda pcmdi_metrics development environment
name: pcmdi_metrics_dev
channels:
- conda-forge
- defaults
dependencies:
# Base
# ==================
- python=3.8.10
tomvothecoder marked this conversation as resolved.
Show resolved Hide resolved
- pip=21.2.4
- numpy=1.21.3
- matplotlib=3.4.3
- cdat::vcs=8.2.1
- cdat::vcsaddons=8.2.1
tomvothecoder marked this conversation as resolved.
Show resolved Hide resolved
- cdms2=3.1.5
- genutil=8.2.1
- cdutil=8.2.1
- cdp=1.7.0
- PCMDI::cia=0.0.6
- proj4=6.1.1
# Testing
# ==================
- pytest=6.2.5
- pytest-cov=3.0.0
# Developer Tools
# ==================
- jupyterlab=3.2.1
- nb_conda=2.2.1
- nb_conda_kernels=2.3.1

prefix: /opt/miniconda3/envs/pmcdi_metrics_dev
tomvothecoder marked this conversation as resolved.
Show resolved Hide resolved
4 changes: 4 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[tool:pytest]
junit_family=xunit2
addopts = --cov=pcmdi_metrics --cov-report term --cov-report html:tests_coverage_reports/htmlcov --cov-report xml:tests_coverage_reports/coverage.xml -s
python_files = tests.py test_*.py