Skip to content

Commit

Permalink
Merge pull request #86 from WilliamHPNielsen/master
Browse files Browse the repository at this point in the history
Add AppVeyor CI to broadbean
  • Loading branch information
jenshnielsen authored Apr 10, 2018
2 parents 2e3d8b2 + fe4e1fe commit 8afaaf1
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 7 deletions.
18 changes: 11 additions & 7 deletions .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,8 @@ branches:
- version1.0

environment:
matrix:
- PYTHON_VERSION: "3.6"

# Disable email notifications
notifications:
email: false
global:
CONDA_INSTALL_LOCATION: "C:\\Miniconda36-x64"

# Do not use MSBuild
build: false
Expand All @@ -20,7 +16,13 @@ build: false

# Install scripts
install:
- pip install --upgrade pip
- set PATH=%CONDA_INSTALL_LOCATION%;%CONDA_INSTALL_LOCATION%\scripts;%PATH%;
- conda config --set always_yes true # else AppVeyor will hang forever waiting for user ([y]/n)
- conda update -n base conda
- conda info -a
- conda create -q -n test-environment python=%PYTHON_VERSION% pip setuptools
- activate test-environment
- python -m pip install --upgrade pip
- pip install -r test_requirements.txt
- pip install .

Expand All @@ -29,3 +31,5 @@ test_script:
- mypy broadbean --ignore-missing-imports
- cd tests
- pytest
- cd ../docs
- execute_notebooks.cmd
6 changes: 6 additions & 0 deletions docs/execute_notebooks.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
echo "Running the notebooks..."
jupyter nbconvert --to notebook --execute "Pulse Building Tutorial.ipynb"
jupyter nbconvert --to notebook --execute "Filter compensation.ipynb"
jupyter nbconvert --to notebook --execute "Subsequences.ipynb"
echo "Cleaning up the generated output..."
rm *nbconvert.ipynb

0 comments on commit 8afaaf1

Please sign in to comment.