Skip to content
This repository was archived by the owner on Oct 7, 2024. It is now read-only.
This repository was archived by the owner on Oct 7, 2024. It is now read-only.

Cannot use tox generated matrix; Azure Pipelines does not accept jobs with '-' #12

@ahgraber

Description

@ahgraber

Sample tox envlist:

[tox]
# https://tox.readthedocs.io/en/latest/config.html#generative-envlist
envlist =
    clean,
    check,
    ; py{37,38}-np{18}-pd{0,2}-sci{14,16},  # test conflict btwn numpy, scipy, and c extensions
    ; py{37,38}-np{19,20}-pd{0,2}-sci{15,16},
    py{37,38}-np{18,19,20},
    py39,  # latest version of python, assume 'latest' for dependencies
    report,
    docs

Sample azure pipeline workflow:

resources:
  repositories:
    - repository: tox
      type: github
      endpoint: github
      name: tox-dev/azure-pipelines-template
      ref: refs/tags/0.2

jobs:
  - template: run-tox-env.yml@tox
    parameters:
      tox_version: ""
      jobs:
        check: null
        py37-np18:
        py37-np19:
        py37-np20:
        py38-np18:
        py38-np19:
        py38-np20:
        py39:
        coverage:
          with_toxenv: "report"
          for_envs: [py37-np18, py37-np19, py37-np20, py38-np18, py38-np19, py38-np20, py39]
        docs: null

Azure Pipelines error message:
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions