Skip to content

Commit

Permalink
chore: run tests with Python 3.10 (#1407)
Browse files Browse the repository at this point in the history
Co-authored-by: Anthonios Partheniou <partheniou@google.com>
  • Loading branch information
SurferJeffAtGoogle and parthea authored Apr 6, 2022
1 parent 9368bc7 commit e8d1de5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,19 @@

import nox

@nox.session(python=['3.6'])
@nox.session(python=['3.6', '3.10'])
def generate_protos(session):
session.install("grpcio-tools")
session.run(
"python", "-m", "grpc_tools.protoc", "-Isynthtool/protos", "--python_out=synthtool/protos", "synthtool/protos/metadata.proto", "synthtool/protos/preconfig.proto")

@nox.session(python=['3.6', '3.9'])
@nox.session(python=['3.6', '3.10'])
def blacken(session):
session.install('black==22.3.0', 'click>8.0')
session.run('black', 'synthtool', 'tests')


@nox.session(python=['3.6', '3.8', '3.9'])
@nox.session(python=['3.6', '3.10'])
def lint(session):
session.install('mypy==0.790', 'flake8', 'black==22.3.0')
session.run('pip', 'install', '-e', '.')
Expand All @@ -36,7 +36,7 @@ def lint(session):
session.run('mypy', 'synthtool')


@nox.session(python=['3.6', '3.8'])
@nox.session(python=['3.6', '3.10'])
def test(session):
session.install('pytest', 'pytest-cov', 'requests_mock', 'watchdog', 'flake8')
session.run('pip', 'install', '-e', '.')
Expand Down

0 comments on commit e8d1de5

Please sign in to comment.