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

Commit 45a7834

Browse files
committed
Squash all commits
1 parent a5c414d commit 45a7834

File tree

1 file changed

+39
-1
lines changed

1 file changed

+39
-1
lines changed

azure-pipelines.yml

Lines changed: 39 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,49 @@ resources:
1818
name: sloria/azure-pipeline-templates
1919
ref: refs/heads/sloria
2020

21+
# Run jobs with tox for lint/docs only
2122
jobs:
23+
- job: direct_pytest
24+
# Make strategy and vm
25+
pool:
26+
vmImage: 'ubuntu-latest'
27+
strategy:
28+
matrix:
29+
Python35:
30+
python.version: '3.5'
31+
Python36:
32+
python.version: '3.6'
33+
Python37:
34+
python.version: '3.7'
35+
Python38:
36+
python.version: '3.8'
37+
# Run steps for working and simple `pytest` call
38+
steps:
39+
- task: UsePythonVersion@0
40+
inputs:
41+
versionSpec: '$(python.version)'
42+
displayName: 'Use Python $(python.version)'
43+
- script: |
44+
python -m pip install --upgrade pip
45+
pip install -r requirements.txt
46+
displayName: 'Install dependencies'
47+
- script: |
48+
pip install pytest pytest-azurepipelines
49+
pytest
50+
displayName: 'pytest'
2251
- template: job--python-tox.yml@sloria
2352
parameters:
24-
toxenvs: [lint, py35, py36, py37, py38, docs]
53+
toxenvs: [lint, docs] # Skip py35 etc here
2554
os: linux
55+
buildSteps:
56+
- script: python -m pip install --upgrade pip
57+
displayName: 'Upgrade pip'
58+
- script: pip install -r requirements.txt
59+
displayName: 'Install pip dependencies'
60+
# - template: job--python-tox.yml@sloria
61+
# parameters:
62+
# toxenvs: [lint, docs] # Skip py35 etc here
63+
# os: linux
2664
- template: job--pypi-release.yml@sloria
2765
parameters:
2866
dependsOn:

0 commit comments

Comments
 (0)