GithubHelp home page GithubHelp logo

mitchute / jade Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nrel/jade

0.0 1.0 0.0 7.87 MB

Provides HPC workflow automation services

License: BSD 3-Clause "New" or "Revised" License

Dockerfile 0.08% Python 99.18% Shell 0.08% E 0.67%

jade's Introduction

JADE

JADE source code repository

Documentation

Python Package using Conda

Documentation: https://nrel.github.io/jade/

Tutorial: https://nrel.github.io/jade/tutorial.html

Dev Setup

This project uses conda to manage software dependencies. Please make sure conda has already been installed on your machine, or follow the guide to install.

Virtual Environment

Use the commands below to create the virtual environment for Python, and install the required packages.

Create virtual environment

conda env create -f environment.yml
# or
conda env create -f dev-environment.yml

Activate virtual environment

conda activate jade

Deactivate virtual environment

conda deactivate

The dev packages require that pandoc and plantuml be installed.

Unit & Integration Test

Installation:

pip install -e '.[dev]'

This project uses pytest as the framework to run unit tests and integration tests, and generate HTML reports of coverage with the plugin pytest-cov. The following are some basic commands for running tests with pytest.

Run unit tests

pytest --cov=jade tests/unit/ --cov-report=html -v

Run integration tests

pytest --cov=jade tests/integration/ --cov-report=html -v

Run test on a specific Python module

pytest --cov=jade tests/unit/utils/test_utils.py -v

Run test on a specific Python function

pytest --cov=jade tests/unit/utils/test_utils.py::test_create_chunks -v

Run test with debug logging activated

pytest tests/unit/jobs/test_job_queue.py --log-cli-level=debug

For more details and examples, please refer to the official pytest documentation.

jade's People

Contributors

daniel-thom avatar jgu2 avatar jwjenkin avatar mrossol avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.