Potentially fix syntax error

This commit is contained in:
Marek Wolan
2023-07-11 08:08:29 +00:00
parent 0911efe4d0
commit 65d91e01a7

View File

@@ -45,44 +45,44 @@ stages:
pool: pool:
vmImage: ${{ item.Value.img }} vmImage: ${{ item.Value.img }}
steps: steps:
- task: UsePythonVersion@0 - task: UsePythonVersion@0
inputs: inputs:
versionSpec: ${{ item.Value.py }} versionSpec: ${{ item.Value.py }}
displayName: 'Use Python ${{ item.Value.py }}' displayName: 'Use Python ${{ item.Value.py }}'
- script: | - script: |
python -m pip install pre-commit python -m pip install pre-commit
pre-commit install pre-commit install
pre-commit run --all-files pre-commit run --all-files
displayName: 'Run pre-commits' displayName: 'Run pre-commits'
- script: | - script: |
python -m pip install --upgrade pip==23.0.1 python -m pip install --upgrade pip==23.0.1
pip install wheel==0.38.4 --upgrade pip install wheel==0.38.4 --upgrade
pip install setuptools==66 --upgrade pip install setuptools==66 --upgrade
pip install build==0.10.0 pip install build==0.10.0
pip install pytest-azurepipelines pip install pytest-azurepipelines
displayName: 'Install build dependencies' displayName: 'Install build dependencies'
- script: | - script: |
python -m build python -m build
displayName: 'Build PrimAITE' displayName: 'Build PrimAITE'
- script: | - script: |
PRIMAITE_WHEEL=$(ls ./dist/primaite*.whl) PRIMAITE_WHEEL=$(ls ./dist/primaite*.whl)
python -m pip install $PRIMAITE_WHEEL[dev] python -m pip install $PRIMAITE_WHEEL[dev]
displayName: 'Install PrimAITE' displayName: 'Install PrimAITE'
condition: or(eq( variables['Agent.OS'], 'Linux' ), eq( variables['Agent.OS'], 'Darwin' )) condition: or(eq( variables['Agent.OS'], 'Linux' ), eq( variables['Agent.OS'], 'Darwin' ))
- script: | - script: |
forfiles /p dist\ /m *.whl /c "cmd /c python -m pip install @file[dev]" forfiles /p dist\ /m *.whl /c "cmd /c python -m pip install @file[dev]"
displayName: 'Install PrimAITE' displayName: 'Install PrimAITE'
condition: eq( variables['Agent.OS'], 'Windows_NT' ) condition: eq( variables['Agent.OS'], 'Windows_NT' )
- script: | - script: |
primaite setup primaite setup
displayName: 'Perform PrimAITE Setup' displayName: 'Perform PrimAITE Setup'
- script: | - script: |
pytest tests/ pytest tests/
displayName: 'Run tests' displayName: 'Run tests'