-
Notifications
You must be signed in to change notification settings - Fork 10
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 #51 from esheldon/tests
Add unit tests
- Loading branch information
Showing
15 changed files
with
1,437 additions
and
801 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,54 @@ | ||
name: tests | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: null | ||
|
||
jobs: | ||
tests: | ||
name: tests | ||
strategy: | ||
matrix: | ||
pyver: [3.6, 3.7, 3.8] | ||
|
||
runs-on: "ubuntu-latest" | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- uses: conda-incubator/setup-miniconda@v2 | ||
with: | ||
python-version: ${{ matrix.pyver }} | ||
channels: conda-forge,defaults | ||
channel-priority: strict | ||
show-channel-urls: true | ||
|
||
- name: configure conda and install code | ||
shell: bash -l {0} | ||
run: | | ||
conda config --set always_yes yes | ||
conda install -q mamba | ||
# requirements for meds | ||
mamba install -q --file requirements.txt | ||
# installs for testing | ||
mamba install -q \ | ||
pip \ | ||
setuptools \ | ||
flake8 \ | ||
pytest-cov | ||
python -m pip install -e . | ||
- name: lint | ||
shell: bash -l {0} | ||
run: | | ||
flake8 meds | ||
- name: test | ||
shell: bash -l {0} | ||
run: | | ||
pytest -v --cov=meds --cov-report term-missing meds |
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
# flake8: noqa | ||
from .defaults import __version__ | ||
from . import meds | ||
|
||
|
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
Oops, something went wrong.