-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set up CI with Azure Pipelines (#17)
* Set up CI with Azure Pipelines [skip ci] * update azure-pipelines (#18) Co-authored-by: ethan <32364921+sangyx@users.noreply.github.com>
- Loading branch information
1 parent
5c70b2d
commit bfb8151
Showing
15 changed files
with
233 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -66,6 +66,7 @@ instance/ | |
|
||
# Sphinx documentation | ||
docs/_build/ | ||
_build/ | ||
_static | ||
make.bat | ||
Makefile | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
jobs: | ||
- job: Tests | ||
pool: | ||
vmImage: 'ubuntu-16.04' | ||
|
||
steps: | ||
- script: | | ||
echo "##vso[task.prependpath]$CONDA/bin" | ||
conda env create -f .conda/environment.yml | ||
displayName: Prepare conda | ||
- script: | | ||
source activate uarray | ||
pip install git+https://github.com/Quansight-Labs/uarray.git | ||
pip install git+https://github.com/Quansight-Labs/unumpy.git | ||
pip install -e . --no-deps | ||
displayName: Install package | ||
- script: | | ||
source activate uarray | ||
pytest | ||
displayName: Run tests | ||
- task: PublishCodeCoverageResults@1 | ||
inputs: | ||
codeCoverageTool: Cobertura | ||
summaryFileLocation: "$(System.DefaultWorkingDirectory)/**/coverage.xml" | ||
|
||
- job: TestsMinimalEnv | ||
pool: | ||
vmImage: 'ubuntu-16.04' | ||
|
||
steps: | ||
- script: | | ||
echo "##vso[task.prependpath]$CONDA/bin" | ||
conda env create -f .conda/environment_minimal.yml | ||
displayName: Prepare conda | ||
- script: | | ||
source activate uarray_min | ||
pip install git+https://github.com/Quansight-Labs/uarray.git | ||
pip install git+https://github.com/Quansight-Labs/unumpy.git | ||
pip install -e . --no-deps | ||
displayName: Install package | ||
- script: | | ||
source activate uarray_min | ||
pytest | ||
displayName: Run tests | ||
- task: PublishCodeCoverageResults@1 | ||
inputs: | ||
codeCoverageTool: Cobertura | ||
summaryFileLocation: "$(System.DefaultWorkingDirectory)/**/coverage.xml" | ||
|
||
- job: Docs | ||
pool: | ||
vmImage: 'ubuntu-16.04' | ||
steps: | ||
- script: | | ||
echo "##vso[task.prependpath]$CONDA/bin" | ||
conda env create -f .conda/environment.yml | ||
displayName: Prepare conda | ||
- script: | | ||
source activate uarray | ||
pip install git+https://github.com/Quansight-Labs/uarray.git | ||
pip install git+https://github.com/Quansight-Labs/unumpy.git | ||
pip install -e . --no-deps | ||
displayName: Install package | ||
- script: | | ||
source activate uarray | ||
sphinx-build -W -b html docs/ _build/html | ||
displayName: Build docs | ||
- script: | | ||
source activate uarray | ||
doc8 | ||
displayName: Lint docs | ||
- task: PublishPipelineArtifact@0 | ||
inputs: | ||
artifactName: 'Documentation' | ||
targetPath: '$(System.DefaultWorkingDirectory)/_build/html' | ||
|
||
trigger: | ||
branches: | ||
include: | ||
- master | ||
|
||
pr: | ||
- master |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[doc8] | ||
max-line-length=88 | ||
ignore-path=docs/generated,docs/_build,_build,*.egg-info |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,4 @@ | |
|
||
.. currentmodule:: {{ module }} | ||
|
||
.. auto{{ objtype }}:: {{ objname }} | ||
.. auto{{ objtype }}:: {{ objname }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,4 +24,4 @@ | |
{{ name }}.{{ item }} | ||
{% endfor %} | ||
{% endif %} | ||
{% endblock %} | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,4 +26,4 @@ | |
{{ function }} | ||
{% endfor %} | ||
|
||
{% endif %} | ||
{% endif %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
udiff | ||
====== | ||
|
||
.. automodule:: udiff | ||
.. automodule:: udiff |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
[pytest] | ||
junit_family = xunit2 | ||
addopts = --doctest-modules --junitxml=junit/test-results.xml --cov-report=xml --cov-report=term --cov --cov-report html --cov . --cov-config .coveragerc | ||
addopts = --black --doctest-modules --junitxml=junit/test-results.xml --cov-report=xml --cov-report=term --cov --cov-report html --cov . --cov-config .coveragerc | ||
doctest_optionflags= IGNORE_EXCEPTION_DETAIL |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.