From 24310dc3babd975fea15a35474d69273bed4fa65 Mon Sep 17 00:00:00 2001 From: Bob Halley Date: Sun, 1 Nov 2020 06:21:01 -0800 Subject: [PATCH] azure + poetry attempt --- azure-pipelines.yml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index c0c85aad..6a3e62b4 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -25,17 +25,25 @@ jobs: # displayName: 'Install pip and wheel' - script: | - python -m pip install requests requests-toolbelt idna cryptography - python -m pip install trio sniffio curio + (Invoke-WebRequest -Uri https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py -UseBasicParsing).Content | python - + displayName: 'Install Poetry + + - script: | + %USERPROFILE%\.poetry\bin\poetry install -E dnssec -E doh -E idna -E trio -E curio displayName: 'Install python dependencies' +# - script: | +# python -m pip install requests requests-toolbelt idna cryptography +# python -m pip install trio sniffio curio +# displayName: 'Install python dependencies' + - script: | dotnet tool install --global Codecov.Tool displayName: 'Install Codecov.Tool' - script: | - python -m pip install pytest pytest-cov pytest-azurepipelines - pytest --junitxml=junit/test-results.xml --cov=. --cov-report=xml --cov-report=html + %USERPROFILE%\.poetry\bin\poetry run python -m pip install pytest-azurepipelines + %USERPROFILE%\.poetry\bin\poetry run pytest --junitxml=junit/test-results.xml --cov=. --cov-report=xml --cov-report=html displayName: 'pytest' - task: PublishTestResults@2 -- 2.47.3