Skip to content

Commit

Permalink
tests: conda updates
Browse files Browse the repository at this point in the history
  • Loading branch information
henryiii committed Sep 18, 2020
1 parent 258536b commit c54cdc7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
8 changes: 6 additions & 2 deletions conda.recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,16 @@ build:
script_env:
- CC
- CXX
script: {{ PYTHON }} -m pip install . -vvv
script: |
{{ PYTHON }} -m pip install -vvv "git+https://github.com/pybind/pybind11.git@master"
{{ PYTHON }} -m pip install . -vvv --no-deps
{{ PYTHON }} -m pip uninstall -y pybind11
requirements:
build:
- {{ compiler('cxx') }}
- vs2017_{{ target_platform }} # [win]
- cmake

host:
- python
Expand All @@ -37,7 +41,7 @@ test:
requires:
- pytest
commands:
- pytest .
- pytest

about:
summary: An example project built with pybind11.
Expand Down
7 changes: 4 additions & 3 deletions tests/test.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import python_example as m

assert m.__version__ == '0.0.1'
assert m.add(1, 2) == 3
assert m.subtract(1, 2) == -1
def my_simple_test():
assert m.__version__ == '0.0.1'
assert m.add(1, 2) == 3
assert m.subtract(1, 2) == -1

0 comments on commit c54cdc7

Please sign in to comment.