Skip to content

Commit 79c08ae

Browse files
authored
Merge pull request #35 from ayasyrev/func_name
Func name
2 parents 55dda57 + de4219b commit 79c08ae

File tree

12 files changed

+245
-110
lines changed

12 files changed

+245
-110
lines changed

.github/workflows/coverage.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ jobs:
44
coverage:
55
runs-on: ubuntu-latest
66
steps:
7-
- uses: actions/checkout@v2
7+
- uses: actions/checkout@v3
88
- uses: actions/setup-python@v1
99
with:
1010
python-version: "3.10"
1111
architecture: x64
1212
- run: pip install nox
13-
- run: nox -f noxfile_cov.py
13+
- run: nox -f noxfile_cov.py -p "3.10"
1414
env:
1515
CODECOV_TOKEN: ${{secrets.CODECOV_TOKEN}}

.github/workflows/lint.yml

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: Tests
2+
on: push
3+
jobs:
4+
tests:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- uses: actions/checkout@v3
8+
- uses: actions/setup-python@v1
9+
with:
10+
python-version: "3.10"
11+
architecture: x64
12+
- run: pip install nox
13+
- run: nox -p "3.10" -f noxfile_lint.py

.github/workflows/tests.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ jobs:
55
runs-on: ubuntu-latest
66
strategy:
77
matrix:
8-
python: ["3.8", "3.9", "3.7", "3.10"]
8+
python: ["3.8", "3.9", "3.10", "3.11"]
99
name: Python ${{ matrix.python }}
1010
steps:
11-
- uses: actions/checkout@v2
11+
- uses: actions/checkout@v3
1212
- uses: actions/setup-python@v1
1313
with:
1414
python-version: ${{ matrix.python }}

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/benchmark-utils)](https://pypi.org/project/benchmark-utils/)
33
[![PyPI Status](https://badge.fury.io/py/benchmark-utils.svg)](https://badge.fury.io/py/benchmark-utils)
44
[![Tests](https://github.com/ayasyrev/benchmark_utils/workflows/Tests/badge.svg)](https://github.com/ayasyrev/benchmark_utils/actions?workflow=Tests) [![Codecov](https://codecov.io/gh/ayasyrev/benchmark_utils/branch/main/graph/badge.svg)](https://codecov.io/gh/ayasyrev/benchmark_utils)
5-
Tested on python 3.7, 3.8, 3.9, 3.10
5+
Tested on python 3.8, 3.9, 3.10, 3.11
66

77
Utils for benchmark.

noxfile.py

+1-11
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,8 @@
11
import nox
22

33

4-
@nox.session(python=["3.8", "3.9", "3.7", "3.10"])
4+
@nox.session(python=["3.8", "3.9", "3.10", "3.11"])
55
def tests(session):
66
args = session.posargs or ["--cov"]
77
session.install(".", "pytest", "pytest-cov", "coverage[toml]")
88
session.run("pytest", *args)
9-
10-
11-
locations = "src/benchmark_utils", "tests", "noxfile.py"
12-
13-
14-
@nox.session(python=["3.8", "3.9", "3.7", "3.10"])
15-
def lint(session):
16-
args = session.posargs or locations
17-
session.install("flake8")
18-
session.run("flake8", *args)

noxfile_conda.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import nox
22

33

4-
@nox.session(python=["3.8", "3.9", "3.7", "3.10"], venv_backend="mamba")
4+
@nox.session(python=["3.8", "3.9", "3.10", "3.11"], venv_backend="mamba")
55
def tests(session):
66
args = session.posargs or ["--cov"]
77
session.conda_install("--file", "requirements_test.txt")

noxfile_conda_lint.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,8 @@
33
locations = "src/benchmark_utils", "tests", "noxfile.py"
44

55

6-
@nox.session(python=["3.8", "3.9", "3.7", "3.10"], venv_backend="mamba")
6+
@nox.session(python=["3.8", "3.9", "3.10", "3.11"], venv_backend="mamba")
77
def lint(session):
88
args = session.posargs or locations
9-
109
session.conda_install("flake8")
1110
session.run("flake8", *args)

noxfile_lint.py

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import nox
2+
3+
4+
locations = "src/benchmark_utils", "tests", "noxfile.py"
5+
6+
7+
@nox.session(python=["3.8", "3.9", "3.10", "3.11"])
8+
def lint(session):
9+
args = session.posargs or locations
10+
session.install("flake8")
11+
session.run("flake8", *args)

setup.cfg

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ url = https://github.com/ayasyrev/benchmark_utils
1010
license = apache2
1111
classifiers =
1212
Programming Language :: Python :: 3
13-
Programming Language :: Python :: 3.7
1413
Programming Language :: Python :: 3.8
1514
Programming Language :: Python :: 3.9
1615
Programming Language :: Python :: 3.10
16+
Programming Language :: Python :: 3.11
1717
License :: OSI Approved :: Apache Software License
1818
Operating System :: OS Independent
1919

0 commit comments

Comments
 (0)