Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion azure-pipelines-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: '3.7'
versionSpec: '3.9'
- download: DurablePyCI
- script: "rm -r ./azure_functions_durable/_manifest"
displayName: 'Remove _manifest folder'
Expand Down
4 changes: 2 additions & 2 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ trigger:
- v*

variables:
python.version: '3.7'
python.version: '3.9'
baseFolder: .
componentArtifactName: 'azure_functions_durable'
#componentArtifactName: 'dist'
Expand Down Expand Up @@ -48,7 +48,7 @@ stages:

- script: |
pip install pytest pytest-azurepipelines
pytest
pytest --ignore=samples-v2
displayName: 'pytest'
- task: ManifestGeneratorTask@0
displayName: "SBOM Generation Task"
Expand Down
6 changes: 3 additions & 3 deletions eng/templates/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: '3.7.x'
versionSpec: '3.9.x'
- script: |
python -m pip install --upgrade pip
pip install -r requirements.txt
Expand All @@ -22,12 +22,12 @@ jobs:

- script: |
cd azure
flake8 . --count --show-source --statistics
python -m flake8 . --count --show-source --statistics
displayName: 'Run lint test with flake8'

- script: |
pip install pytest pytest-azurepipelines
pytest
pytest --ignore=samples-v2
displayName: 'pytest'
- script: |
python setup.py sdist bdist_wheel
Expand Down
8 changes: 4 additions & 4 deletions noxfile.py
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
import nox

@nox.session(python=["3.7","3.8"])
@nox.session(python=["3.9","3.11"])
def tests(session):
# same as pip install -r -requirements.txt
session.install("-r", "requirements.txt")
session.install("pytest")
session.run("pytest", "-v", "tests")


@nox.session(python=["3.7", "3.8"])
@nox.session(python=["3.9","3.11"])
def lint(session):
session.install("flake8")
session.install("flake8-docstrings")
session.run("flake8", "./azure/")

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

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