summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/tools/ci/azure/tox_pytest.yml
blob: 3704ecc5bed9d622574ccb74c275a1b5cf149a3f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
parameters:
  directory: ''
  toxenv: 'ALL'
  
steps:
- template: pip_install.yml
  parameters:
    packages: tox

- script: |
    set -eux -o pipefail
    tox -c ${{ parameters.directory }} -e ${{ parameters.toxenv }} -- --junitxml=results.xml
  displayName: 'Run tests'

- task: PublishTestResults@2
  inputs:
    testResultsFiles: '${{ parameters.directory }}/results.xml'
    testRunTitle: '${{ parameters.directory }}'
  displayName: 'Publish results'
  condition: succeededOrFailed()