Skip to content

Commit

Permalink
Merge branch 'feature/CI' of https://github.com/SURGroup/UQpy into fe…
Browse files Browse the repository at this point in the history
…ature/CI
  • Loading branch information
dgiovanis committed Feb 18, 2021
2 parents 4fc4fa9 + 609be91 commit 76863be
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 68 deletions.
56 changes: 8 additions & 48 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,17 +65,12 @@ steps:
cliSources: '.'
extraProperties: |
sonar.exclusions=**/example/**
sonar.python.coverage.reportPaths=coverage.xml
sonar.python.coverage.reportPaths=./coverage.xml
sonar.branch.name=feature/CI
- script: |
python -m pip install --upgrade pip
python setup.py $(GitVersion.SemVer) install
displayName: "Install project dependencies"
#- script: |
# pip install -r requirements.txt
# displayName: Install project dependencies
pip install -r requirements.txt
displayName: Install project dependencies
- script: |
pip install pylint
Expand All @@ -84,25 +79,13 @@ steps:
- script: |
pip install pytest pytest-cov
#echo "##vso[task.setvariable variable=PATH]${​​​​​​​​PATH}​​​​​​​​:$(Build.SourcesDirectory)/src/UQpy"
#python -m pytest tests/*.py --cov=src --cov-report=xml --cov-report=html
pytest tests/ --cov-config .coveragerc --doctest-modules --junitxml=junit/test-results.xml --cov=src --cov-report=xml --cov-report=html
#pytest tests/ --cov-config .coveragerc --doctest-modules --junitxml=junit/test-results.xml --cov=src --cov-report=xml --cov-report=html
#echo "##vso[task.setvariable variable=PATH]${PATH}:$(Build.SourcesDirectory)/src/UQpy"
PYTHONPATH=src pytest tests/*.py --cov-config .coveragerc --import-mode=importlib --doctest-modules --junitxml=junit/test-results.xml --cov=UQpy --cov-report=xml --cov-report=html
workingDirectory: $(Build.SourcesDirectory)
displayName: 'Test with pytest'
#- script: |
# pip install pytest
# pip install pytest-cov
# pip install pytest pytest-azurepipelines
# pip install numpy
# pip install matplotlib
# pip install -U scikit-learn
# echo "##vso[task.setvariable variable=PATH]${PATH}:$(Build.SourcesDirectory)/src/UQpy"
# # python -m pytest tests/ --import-mode=importlib --doctest-modules --junitxml=junit/test-results.xml --cov=. --cov-report=xml --cov-report=html
# pytest tests/*.py --cov-config .coveragerc --import-mode=importlib --doctest-modules --junitxml=junit/test-results.xml --cov=src --cov-report=xml --cov-report=html
# workingDirectory: $(Build.SourcesDirectory)
# displayName: 'Test with pytest'

- task: PublishTestResults@2
condition: succeededOrFailed()
inputs:
Expand Down Expand Up @@ -160,26 +143,3 @@ steps:
# changeLogCompareToRelease: 'lastFullRelease'
# changeLogType: 'commitBased'

#- bash: echo "##vso[task.prependpath]$CONDA/bin"
#displayName: Add conda to PATH

#- bash: conda create --yes --quiet --name myEnvironment
#displayName: Create Anaconda environment

#- bash: |
#source activate myEnvironment
#conda install --yes --quiet --name myEnvironment python=$(pythonVersion) conda-build anaconda-client
#displayName: Install Anaconda packages

#- bash: |
#source activate myEnvironment
#conda build . recipe --variants "{'version': ['$(GitVersion.SemVer)']}"
#conda build . recipe --variants "{'version': ['100.0.1']}"
#conda build .
#displayName: Build noarch conda packages

#- bash: |
#source activate myEnvironment
#anaconda login --username $(ANACONDAUSER) --password $(ANACONDAPW)
#anaconda upload /usr/share/miniconda/envs/myEnvironment/conda-bld/noarch/*.tar.bz2
#displayName: Upload conda packages
20 changes: 0 additions & 20 deletions meta.yml

This file was deleted.

0 comments on commit 76863be

Please sign in to comment.