Skip to content
Permalink
Browse files

Fixing the CI on master (#185)

  • Loading branch information...
rth committed Sep 25, 2018
1 parent 51b2012 commit 38cd1d6d98078a69e8214ce85557ab5bbf631dbf
Showing with 19 additions and 18 deletions.
  1. +18 −16 appveyor.yml
  2. +1 −1 build_tools/requirements_compat.txt
  3. +0 −1 freediscovery/tests/test_feature_weighting.py
@@ -3,21 +3,23 @@ build: false

environment:
global:
PYTHON: "C:\\conda"
CMD_IN_ENV: "cmd /E:ON /V:ON /C .\\ci-helpers\\appveyor\\windows_sdk.cmd"
PYTHON_ARCH: "64" # needs to be set for CMD_IN_ENV to succeed. If a mix
# of 32 bit and 64 bit builds are needed, move this
# to the matrix section.
# Used by atropy ci-helpers
CONDA_CHANNELS: "defaults conda-forge"
matrix:
- PYTHON_VERSION: 3.6
REQUIREMENTS_FILE: "requirements_engine.txt"
PYTEST_PATH: "."
- PYTHON_VERSION: 2.7
- PYTHON: "C:\\Miniconda-x64"
PYTHON_VERSION: "2.7.x"
PYTHON_ARCH: "64"
REQUIREMENTS_FILE: "requirements.txt"
PYTEST_PATH: "freediscovery/tests/"

- PYTHON: "C:\\Miniconda3-x64"
PYTHON_VERSION: "3.6.x"
PYTHON_ARCH: "64"
REQUIREMENTS_FILE: "requirements_engine.txt"
PYTEST_PATH: "."

install:
# If there is a newer build queued for the same PR, cancel this one.
# The AppVeyor 'rollout builds' option is supposed to serve the same
@@ -28,18 +30,18 @@ install:
https://ci.appveyor.com/api/projects/$env:APPVEYOR_ACCOUNT_NAME/$env:APPVEYOR_PROJECT_SLUG/history?recordsNumber=50).builds | `
Where-Object pullRequestId -eq $env:APPVEYOR_PULL_REQUEST_NUMBER)[0].buildNumber) { `
throw "There are newer queued builds for this pull request, failing early." }
- "git clone --depth 1 git://github.com/astropy/ci-helpers.git"
- "powershell ci-helpers/appveyor/install-miniconda.ps1"
- "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%"
- "activate test"
- conda install --file %REQUIREMENTS_FILE%
- conda install nose
- python setup.py develop
# Prepend miniconda installed Python to the PATH of this build
# Add Library/bin directory to fix issue
# https://github.com/conda/conda/issues/1753
- "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PYTHON%\\Library\\bin;%PATH%"
- conda config --append channels conda-forge
- conda install -y --file %REQUIREMENTS_FILE%
- pip install nose pytest
- pip install -e .

test_script:
- activate test # activate the virtualenv
- pytest -sv %PYTEST_PATH%
- pip install matplotlib==1.5.3
- conda install -y matplotlib==2.2.3
- ps: |
cd ".\\examples\\python"
Get-ChildItem ".\\" -Filter *.py |
@@ -4,7 +4,7 @@ pandas==0.18.0
scikit-learn==0.19.0
nltk==3.2.1
pytest==3.0.1
flask==0.12.0 # web libraries
flask==0.12.4 # web libraries
requests==2.7.0
marshmallow==2.12.2
webargs==1.5.3
@@ -24,7 +24,6 @@
['n', 'c', 'l', 'u',
'cp', 'lp', 'up'])),
['sparse']))
@pytest.mark.filterwarnings('error')
def test_feature_weighting_empty_document(scheme, array_type):
documents_new = documents + ['']
tf = CountVectorizer().fit_transform(documents_new)

0 comments on commit 38cd1d6

Please sign in to comment.
You can’t perform that action at this time.