Skip to content

Commit 6daaa14

Browse files
committed
pytest is launched from conda build tests
1 parent 7390747 commit 6daaa14

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

conda-build.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,14 @@ jobs:
4343
displayName: 'Set Windows environment'
4444
env:
4545
CXX: "cl.exe"
46+
4647
- ${{ if eq(parameters.vmImage, 'windows-2022') }}:
4748
- script: |
4849
call "C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise\\VC\\Auxiliary\\Build\\vcvars64.bat"
4950
displayName: 'Set Windows environment'
5051
env:
5152
CXX: "cl.exe"
53+
5254
- bash: conda create --yes --quiet --name build_env conda-build conda-verify libarchive python=${{ parameters.py_maj }}.${{ parameters.py_min }} anaconda-client
5355
displayName: 'Create Anaconda environment'
5456

@@ -62,10 +64,3 @@ jobs:
6264
PYTHON_VERSION: ${{ parameters.py_maj }}.${{ parameters.py_min }}
6365
PACKAGE_VERSION: $(Build.SourceBranchName)
6466
TOKEN: $(anaconda.TOKEN)
65-
66-
- bash: |
67-
source activate build_env && \
68-
pip install pytest && \
69-
cd test && \
70-
pytest
71-
displayName: 'Unitests using pytest'

0 commit comments

Comments
 (0)