OpenAstronomy / azure-pipelines-templates

An opinionated set of Azure Pipelines templates for Python projects using pyproject.toml (PEP517) and tox
https://openastronomy-azure-pipelines.readthedocs.io/en/latest/
BSD 2-Clause "Simplified" License
11 stars 20 forks source link

Change the job friendly name to use the name variable if it exists #46

Closed ayshih closed 4 years ago

ayshih commented 4 years ago

Currently, the job friendly name doesn't use the name variable even if it is specified. For example, if the azure-pipelines.yml looks like:

envs:
- macos: py38
  name: py38_n4
  posargs: -n=4

- macos: py38
  name: py38_n1
  posargs: -n=1

the two jobs will have the same friendly name: "py38 [macos]". Having the same friendly name is unhelpful on the Azure Pipelines website (because it's difficult to distinguish jobs) and horrible on GitHub (because if multiple jobs have the same friendly name, only one is shown).

This PR changes the friendly name to use the name variable if it is specified. In the example above, the friendly names would be "py38_n4 [macos]" and "py38_n1 [macos]".