Skip to content

Commit db54053

Browse files
authored
Bump minimum Python version to 3.9 (#552)
* Bump min Python version to 3.9 * Remove samples tests from CI run
1 parent 56d4486 commit db54053

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

azure-pipelines-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
steps:
1818
- task: UsePythonVersion@0
1919
inputs:
20-
versionSpec: '3.7'
20+
versionSpec: '3.9'
2121
- download: DurablePyCI
2222
- script: "rm -r ./azure_functions_durable/_manifest"
2323
displayName: 'Remove _manifest folder'

azure-pipelines.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ trigger:
1313
- v*
1414

1515
variables:
16-
python.version: '3.7'
16+
python.version: '3.9'
1717
baseFolder: .
1818
componentArtifactName: 'azure_functions_durable'
1919
#componentArtifactName: 'dist'
@@ -48,7 +48,7 @@ stages:
4848
4949
- script: |
5050
pip install pytest pytest-azurepipelines
51-
pytest
51+
pytest --ignore=samples-v2
5252
displayName: 'pytest'
5353
- task: ManifestGeneratorTask@0
5454
displayName: "SBOM Generation Task"

eng/templates/build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
steps:
1313
- task: UsePythonVersion@0
1414
inputs:
15-
versionSpec: '3.7.x'
15+
versionSpec: '3.9.x'
1616
- script: |
1717
python -m pip install --upgrade pip
1818
pip install -r requirements.txt
@@ -22,12 +22,12 @@ jobs:
2222
2323
- script: |
2424
cd azure
25-
flake8 . --count --show-source --statistics
25+
python -m flake8 . --count --show-source --statistics
2626
displayName: 'Run lint test with flake8'
2727
2828
- script: |
2929
pip install pytest pytest-azurepipelines
30-
pytest
30+
pytest --ignore=samples-v2
3131
displayName: 'pytest'
3232
- script: |
3333
python setup.py sdist bdist_wheel

noxfile.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
11
import nox
22

3-
@nox.session(python=["3.7","3.8"])
3+
@nox.session(python=["3.9","3.11"])
44
def tests(session):
55
# same as pip install -r -requirements.txt
66
session.install("-r", "requirements.txt")
77
session.install("pytest")
88
session.run("pytest", "-v", "tests")
99

1010

11-
@nox.session(python=["3.7", "3.8"])
11+
@nox.session(python=["3.9","3.11"])
1212
def lint(session):
1313
session.install("flake8")
1414
session.install("flake8-docstrings")
1515
session.run("flake8", "./azure/")
1616

17-
@nox.session(python=["3.7", "3.8"])
17+
@nox.session(python=["3.9","3.11"])
1818
def typecheck(session):
1919
session.install("-r", "requirements.txt")
2020
session.install("mypy")
2121
session.run("mypy", "./azure/")
2222

23-
@nox.session(python=["3.7", "3.8"])
23+
@nox.session(python=["3.9","3.11"])
2424
def autopep(session):
2525
session.install("-r", "requirements.txt")
2626
session.run("autopep8", "--in-place --aggressive --aggressive --recursive \"./azure/\"")

0 commit comments

Comments
 (0)