Skip to content

Commit

Permalink
Merge remote-tracking branch 'skeleton/main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
pombredanne committed Mar 14, 2022
2 parents df901f5 + 4ef463f commit 97f31ad
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 32 deletions.
31 changes: 14 additions & 17 deletions etc/ci/azure-posix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,30 +13,27 @@ jobs:

strategy:
matrix:
${{ each pyver in parameters.python_versions }}:
${{ each tsuite in parameters.test_suites }}:
${{ format('py{0} {1}', pyver, tsuite.key) }}:
python_version: ${{ pyver }}
${{ tsuite.key }}:
test_suite_label: ${{ tsuite.key }}
test_suite: ${{ tsuite.value }}

steps:
- checkout: self
fetchDepth: 10

- task: UsePythonVersion@0
inputs:
versionSpec: '$(python_version)'
architecture: '${{ parameters.python_architecture }}'
displayName: 'Install Python $(python_version)'
- ${{ each pyver in parameters.python_versions }}:
- task: UsePythonVersion@0
inputs:
versionSpec: '${{ pyver }}'
architecture: '${{ parameters.python_architecture }}'
displayName: '${{ pyver }} - Install Python'

- script: |
python --version
python3 --version
python$(python_version) --version
echo "python$(python_version)" > PYTHON_EXECUTABLE
./configure --dev
displayName: 'Run Configure'
- script: |
python${{ pyver }} --version
echo "python${{ pyver }}" > PYTHON_EXECUTABLE
./configure --clean && ./configure --dev
displayName: '${{ pyver }} - Configure'
- script: $(test_suite)
displayName: 'Run $(test_suite_label) tests with py$(python_version) on ${{ parameters.job_name }}'
- script: $(test_suite)
displayName: '${{ pyver }} - $(test_suite_label) on ${{ parameters.job_name }}'
30 changes: 15 additions & 15 deletions etc/ci/azure-win.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,27 +13,27 @@ jobs:

strategy:
matrix:
${{ each pyver in parameters.python_versions }}:
${{ each tsuite in parameters.test_suites }}:
${{ format('py{0} {1}', pyver, tsuite.key) }}:
python_version: ${{ pyver }}
${{ tsuite.key }}:
test_suite_label: ${{ tsuite.key }}
test_suite: ${{ tsuite.value }}

steps:
- checkout: self
fetchDepth: 10

- task: UsePythonVersion@0
inputs:
versionSpec: '$(python_version)'
architecture: '${{ parameters.python_architecture }}'
displayName: 'Install Python $(python_version)'
- ${{ each pyver in parameters.python_versions }}:
- task: UsePythonVersion@0
inputs:
versionSpec: '${{ pyver }}'
architecture: '${{ parameters.python_architecture }}'
displayName: '${{ pyver }} - Install Python'

- script: |
python --version
echo | set /p=python> PYTHON_EXECUTABLE
configure --dev
displayName: 'Run Configure'
- script: |
python --version
echo | set /p=python> PYTHON_EXECUTABLE
configure --clean && configure --dev
displayName: '${{ pyver }} - Configure'
- script: $(test_suite)
displayName: 'Run $(test_suite_label) tests with py$(python_version) on ${{ parameters.job_name }}'
- script: $(test_suite)
displayName: '${{ pyver }} - $(test_suite_label) on ${{ parameters.job_name }}'

0 comments on commit 97f31ad

Please sign in to comment.