Skip to content

Commit

Permalink
Add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
saulshanabrook committed Nov 12, 2018
1 parent a9c75fb commit 5381243
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 10 deletions.
23 changes: 16 additions & 7 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,19 @@ pool:
vmImage: 'Ubuntu 16.04'

steps:
- script: echo Hello, world!
displayName: 'Run a one-line script'

- script: |
echo Add other tasks to build, test, and deploy your project.
echo See https://aka.ms/yaml
displayName: 'Run a multi-line script'
- task: CondaEnvironment@0
inputs:
environmentName: 'myEnvironment'
updateConda: true
createCustomEnvironment: true
createOptions: -f uarray/environment.yml
- script: cd uarray; mypy uarray
displayName: 'Run mypy'
- script: cd uarray; jupyter nbconvert --to notebook --inplace --execute NumPy\ Compat.ipynb Transpose\ Test.ipynb
displayName: 'Run notebooks'
- script: npm install -g codedown
displayName: Install codedown
- script: cd uarray; cat README.md | codedown python | tail -r | tail -n +2 | tail -r > test_readme.py
displayName: get code from readme
- script: py.test test_readme.py
displayName: Test readme
8 changes: 5 additions & 3 deletions binder/environment.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
channels:
- conda-forge
dependencies:
- python=3.7
- python=3.6
- matchpy
- python-graphviz
- numpy
- hypothesis
- pytest
- numba
- pip:
- astunparse
- typing_extensions
2 changes: 2 additions & 0 deletions uarray/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

[![Binder](https://mybinder.org/badge.svg)](https://mybinder.org/v2/gh/Quansight-Labs/uarray/master?urlpath=lab/tree/uarray/NumPy%20Compat.ipynb)

[![Build Status](https://dev.azure.com/teoliphant/teoliphant/_apis/build/status/Quansight-Labs.uarray)](https://dev.azure.com/teoliphant/teoliphant/_build/latest?definitionId=1)

## Development

The code relies on Python 3.6+ and `matchpy`. Besides that, we use NumPy to define some
Expand Down
1 change: 1 addition & 0 deletions uarray/environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,4 @@ dependencies:
- pudb
- pip:
- astunparse
- typing_extensions

0 comments on commit 5381243

Please sign in to comment.