forked from sagemath/sage
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add azure pipelines for Linux * Set up CI with Azure Pipelines * Changed project structure
- Loading branch information
1 parent
4b78e86
commit caccc60
Showing
12 changed files
with
97 additions
and
27 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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
[run] | ||
omit = | ||
.cache/* | ||
tests/* | ||
docs/* | ||
.pytest_cache/* | ||
setup.py | ||
|
||
[paths] | ||
source = grayskull |
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,5 @@ | ||
include LICENSE | ||
include README.rst | ||
|
||
recursive-exclude * __pycache__ | ||
recursive-exclude * *.py[co] |
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,56 @@ | ||
variables: | ||
grayskull_deps: pytest pytest-azurepipelines pytest-xdist pytest-cov requests pyyaml | ||
|
||
jobs: | ||
- job: Linux | ||
pool: | ||
vmImage: 'ubuntu-latest' | ||
strategy: | ||
matrix: | ||
python38: | ||
python.version: '3.8' | ||
python37: | ||
python.version: '3.7' | ||
maxParallel: 8 | ||
|
||
steps: | ||
- bash: | | ||
echo "##vso[task.prependpath]$CONDA/bin" | ||
displayName: Add conda to PATH | ||
- bash: conda update conda --yes | ||
displayName: Update Conda version | ||
|
||
- bash: | | ||
conda config --add channels conda-forge | ||
conda create --yes --name grayskull | ||
displayName: Create Conda environment (grayskull) | ||
- bash: | | ||
conda config --add channels conda-forge | ||
conda info -a | ||
displayName: Add Conda-Forge channel | ||
- bash: | | ||
source activate grayskull | ||
conda install --yes python=$PYTHON_VERSION $(grayskull_deps) | ||
conda list | ||
displayName: Installing dependencies | ||
- bash: | | ||
source activate grayskull | ||
pytest tests \ | ||
-n auto \ | ||
--color=yes \ | ||
--cov= \ | ||
--cov-append \ | ||
--cov-report html:/tmp/grayskull/converage-html \ | ||
--cov-report xml:coverage.xml \ | ||
--cov-config=$(Build.Repository.LocalPath)/.coveragerc \ | ||
--junit-xml=junit/Linux-py${PYTHON_VERSION}.xml \ | ||
--junit-prefix=Linux-py${PYTHON_VERSION} | ||
- task: PublishTestResults@2 | ||
inputs: | ||
testResultsFiles: 'junit/*.xml' | ||
condition: succeededOrFailed() |
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
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
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,5 @@ | ||
[pytest] | ||
junit_family=xunit2 | ||
junit_duration_report=call | ||
addopts = -ra -q | ||
testpaths = tests |
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,24 +1,18 @@ | ||
from setuptools import setup | ||
|
||
|
||
def main(): | ||
setup( | ||
name="grayskull", | ||
packages=["grayskull", "grayskull.pypi"], | ||
package_dir={"": "src"}, | ||
use_scm_version={"write_to": "src/grayskull/_version.py"}, | ||
setup_requires=["setuptools-scm>=3.4", "setuptools>=42.0"], | ||
install_requires=["requests", "pyyaml"], | ||
extras_require={"testing": ["pytest"]}, | ||
url="https://github.com/marcelotrevisani/grayskull", | ||
license="MIT", | ||
author="Marcelo Duarte Trevisani", | ||
author_email="marceloduartetrevisani@gmail.com", | ||
description="Skeletor's main goal is to conquer the mysterious fortress of" | ||
" Castle Grayskull. If he succeeds, Skeletor would be able to conquer not" | ||
" only Eternia, but the whole universe.", | ||
) | ||
|
||
|
||
if __name__ == "__main__": | ||
main() | ||
setup( | ||
name="grayskull", | ||
version="0.1.0", | ||
packages=["grayskull", "grayskull.base", "grayskull.pypi"], | ||
use_scm_version={"write_to": "grayskull/_version.py"}, | ||
setup_requires=["setuptools-scm>=3.4", "setuptools>=40.0"], | ||
install_requires=["requests", "pyyaml"], | ||
extras_require={"testing": ["pytest"]}, | ||
url="https://github.com/marcelotrevisani/grayskull", | ||
license="MIT", | ||
author="Marcelo Duarte Trevisani", | ||
author_email="marceloduartetrevisani@gmail.com", | ||
description="Skeletor's main goal is to conquer the mysterious fortress of" | ||
" Castle Grayskull. If he succeeds, Skeletor would be able to conquer not" | ||
" only Eternia, but the whole universe.", | ||
) |
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