Skip to content

Commit

Permalink
Update Azure pipelines to use latest macOS, Ubuntu, and python 3.10
Browse files Browse the repository at this point in the history
  • Loading branch information
piehld committed Dec 9, 2024
1 parent 96ec0e2 commit 11ac0d6
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 37 deletions.
1 change: 1 addition & 0 deletions HISTORY.txt
Original file line number Diff line number Diff line change
Expand Up @@ -137,3 +137,4 @@
Remove NeighborInteractionProvider from DictMethodResourceProvider, since will now be calculating interactions on the fly
20-Aug-2024 - V1.26 Add support for accessing target cofactor data from MongoDB
27-Aug-2024 - V1.27 Update order of CARD resource cache loading
9-Dec-2024 - V1.28 Update Azure pipelines to use latest macOS, Ubuntu, and python 3.10
15 changes: 8 additions & 7 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
# 21-Jul-2019 jdw update to Py38
# 10-Mar-2020 jdw py38 only
# 10-Dec-2020 jdw py39 only
# 9-Dec-2024 dwp update to py310
#
name: $(BuildDefinitionName)_$(Date:yyyyMMdd)$(Rev:.rr)

Expand All @@ -26,20 +27,20 @@ schedules:

jobs:
- template: azure-template-tox-job.yml
parameters: { tox: "format_pep8", python: "3.9", os: "linux" }
parameters: { tox: "format_pep8", python: "3.10", os: "linux" }
- template: azure-template-tox-job.yml
parameters: { tox: "lint_pylint", python: "3.9", os: "linux" }
parameters: { tox: "lint_pylint", python: "3.10", os: "linux" }
- template: azure-template-tox-job.yml
parameters: { tox: "test_coverage", python: "3.9", os: "linux", fixtures: 'mongodb' }
parameters: { tox: "test_coverage", python: "3.10", os: "linux", fixtures: 'mongodb' }
#
- template: azure-template-tox-job.yml
parameters: { tox: "py39", python: "3.9", os: "linux", fixtures: 'mongodb' }
parameters: { tox: "py310", python: "3.10", os: "linux", fixtures: 'mongodb' }
#
- template: azure-template-tox-job.yml
parameters: { tox: "py39", python: "3.9", os: "macos", fixtures: 'mongodb' }
parameters: { tox: "py310", python: "3.10", os: "macos", fixtures: 'mongodb' }
#
#- template: azure-template-publish-job.yml
# parameters: {tox: 'py39', python: '3.9', os: 'macos'}
# parameters: {tox: "py310", python: "3.10", os: 'macos'}
- template: azure-template-publish-job.yml
parameters: { tox: "py39", python: "3.9", os: "linux" }
parameters: { tox: "py310", python: "3.10", os: "linux" }
#
4 changes: 2 additions & 2 deletions azure-template-publish-job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ jobs:
- job: ${{ format('publish_{0}_{1}', parameters.tox, parameters.os) }}
pool:
${{ if eq(parameters.os, 'macos') }}:
vmImage: 'macOS-12'
vmImage: 'macOS-latest'
${{ if eq(parameters.os, 'linux') }}:
vmImage: 'ubuntu-20.04'
vmImage: 'ubuntu-latest'
dependsOn:
- ${{ format('build_test_{0}_{1}', parameters.tox, parameters.os) }}
condition: and(succeeded(), ne(variables['Build.Reason'], 'PullRequest'), eq(variables['Build.SourceBranch'], 'refs/heads/master'))
Expand Down
26 changes: 7 additions & 19 deletions azure-template-tox-job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ jobs:
timeoutInMinutes: 0
pool:
${{ if eq(parameters.os, 'macos') }}:
vmImage: "macOS-12"
vmImage: "macOS-latest"
${{ if eq(parameters.os, 'linux') }}:
vmImage: "ubuntu-20.04"
vmImage: "ubuntu-latest"

variables:
- group: py-shared-variables
Expand All @@ -41,7 +41,7 @@ jobs:
- bash: |
set -e
ls -la /Applications/Xcode*
sudo xcode-select --switch /Applications/Xcode_14.2.app/Contents/Developer
sudo xcode-select --switch /Applications/Xcode_16.app/Contents/Developer
which g++
c++ --version
displayName: "setup Xcode"
Expand Down Expand Up @@ -167,30 +167,18 @@ jobs:
export CONFIG_SUPPORT_TOKEN_ENV=$(VAR_CONFIG_SUPPORT_TOKEN_ENV)
${{ format('python -m tox -e {0}', parameters.tox) }}
displayName: "Running tox task"
- ? ${{ if and(not(startsWith(parameters.tox, 'py')), startsWith(parameters.python, '3.9')) }}
: - script: |
export OE_LICENSE=$(oelicense.secureFilePath)
export CONFIG_SUPPORT_TOKEN_ENV=$(VAR_CONFIG_SUPPORT_TOKEN_ENV)
${{ format('python -m tox -e {0}-py39', parameters.tox) }}
displayName: "Running tox task"
- ? ${{ if and(not(startsWith(parameters.tox, 'py')), startsWith(parameters.python, '3.8')) }}
- ? ${{ if and(not(startsWith(parameters.tox, 'py')), startsWith(parameters.python, '3.10')) }}
: - script: |
export OE_LICENSE=$(oelicense.secureFilePath)
export CONFIG_SUPPORT_TOKEN_ENV=$(VAR_CONFIG_SUPPORT_TOKEN_ENV)
${{ format('python -m tox -e {0}-py38', parameters.tox) }}
${{ format('python -m tox -e {0}-py310', parameters.tox) }}
displayName: "Running tox task"
- ? ${{ if and(not(startsWith(parameters.tox, 'py')), startsWith(parameters.python, '3.7')) }}
- ? ${{ if and(not(startsWith(parameters.tox, 'py')), startsWith(parameters.python, '3.9')) }}
: - script: |
export OE_LICENSE=$(oelicense.secureFilePath)
export CONFIG_SUPPORT_TOKEN_ENV=$(VAR_CONFIG_SUPPORT_TOKEN_ENV)
${{ format('python -m tox -e {0}-py37', parameters.tox) }}
${{ format('python -m tox -e {0}-py39', parameters.tox) }}
displayName: "Running tox task"
- ? ${{ if and(not(startsWith(parameters.tox, 'py')), startsWith(parameters.python, '2.7')) }}
: - script: |
export OE_LICENSE=$(oelicense.secureFilePath)
export CONFIG_SUPPORT_TOKEN_ENV=$(VAR_CONFIG_SUPPORT_TOKEN_ENV)
${{ format('python -m tox -e {0}-py27', parameters.tox) }}
displayName: "Runing tox task"
#
# Build artifacts if this is a test target (i.e. labeled as py##)
#
Expand Down
2 changes: 1 addition & 1 deletion rcsb/utils/dictionary/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
__author__ = "John Westbrook"
__email__ = "[email protected]"
__license__ = "Apache 2.0"
__version__ = "1.27"
__version__ = "1.28"
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
),
entry_points={},
#
Expand Down
15 changes: 8 additions & 7 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,11 @@ coverage_cutoff = 50
# 12-Jul-2019 jdw Add placeholders for up to four test paths
# 13-Jul-2019 jdw Add coverage exclusion
# 23-Dec-2022 aae updates for tox 4
# 9-Dec-2024 dwp py310 version
##
[tox]
# The complete list of supported test environments to setup and invoke
envlist = format_pep8-{py39}, lint_pylint-{py39}, format_black-{py39}, py{39}
envlist = format_pep8-{py310}, lint_pylint-{py310}, format_black-{py310}, py{310}
#
minversion = 3.7.0
skip_missing_interpreters = true
Expand All @@ -42,11 +43,11 @@ skipsdist = True
[testenv]
passenv = CONFIG_SUPPORT_TOKEN_ENV,OE_LICENSE
allowlist_externals = echo
basepython = py39: python3.9
basepython = py310: python3.10
commands =
echo "Starting default tests in testenv"

[testenv:py39]
[testenv:py310]
description = 'Run unit tests (unittest runner) using {envpython}'
platform=
macos: darwin
Expand All @@ -68,7 +69,7 @@ commands =
echo "Completed {envname} with {envpython}"

#
[testenv:format_pep8-py39]
[testenv:format_pep8-py310]
description = 'Run selected PEP8 compliance checks (flake8)'
platform=
macos: darwin
Expand All @@ -86,7 +87,7 @@ commands =
echo "Completed {envname}"

#
[testenv:lint_pylint-py39]
[testenv:lint_pylint-py310]
description = 'Run linting compliance checks (pylint)'
platform=
macos: darwin
Expand All @@ -100,7 +101,7 @@ commands =
echo "Completed {envname}"

#
[testenv:format_black-py39]
[testenv:format_black-py310]
description = 'Run format compliance checks (black)'
platform=
macos: darwin
Expand All @@ -116,7 +117,7 @@ commands =
echo "Completed {envname}"

#
[testenv:test_coverage-py39]
[testenv:test_coverage-py310]
description = 'Run test coverage analysis'
platform=
macos: darwin
Expand Down

0 comments on commit 11ac0d6

Please sign in to comment.