From d0297eec36312967ad48c8949045b9fa9a363893 Mon Sep 17 00:00:00 2001 From: Lukas Heumos Date: Mon, 25 Jan 2021 02:49:27 +0100 Subject: [PATCH] Backport PR #1602: add twine check to azure CI + 3.8 matrix --- .azure-pipelines.yml | 30 ++++++++++++++++++++++++------ 1 file changed, 24 insertions(+), 6 deletions(-) diff --git a/.azure-pipelines.yml b/.azure-pipelines.yml index 8a121e1112..e5648b1c2f 100644 --- a/.azure-pipelines.yml +++ b/.azure-pipelines.yml @@ -11,12 +11,12 @@ jobs: vmImage: 'ubuntu-18.04' strategy: matrix: - Python37: - python.version: '3.7' + Python38: + python.version: '3.8' Python36: python.version: '3.6' anndata_dev: - python.version: '3.7' + python.version: '3.8' ANNDATA_DEV: yes RUN_COVERAGE: yes steps: @@ -74,7 +74,25 @@ jobs: testResultsFiles: 'junit/test-*.xml' testRunTitle: 'Publish test results for Python $(python.version)' +- job: CheckBuild + pool: + vmImage: 'ubuntu-18.04' + steps: + + - task: UsePythonVersion@0 + inputs: + versionSpec: '3.8' + displayName: 'Use Python 3.8' + + - script: | + python -m pip install --upgrade pip + pip install setuptools setuptools_scm pytoml wheel twine + displayName: 'Install build dependencies' + + - script: pip list + displayName: 'Display installed versions' + - script: | - python setup.py check --restructuredtext --strict - rst2html.py --halt=2 README.rst >/dev/null - displayName: 'rst2html' + python setup.py sdist bdist_wheel + twine check dist/* + displayName: 'Build & Twine check'