Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
pybind11
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open
pybind11
Commits
fdac5fbf
Unverified
Commit
fdac5fbf
authored
Aug 23, 2021
by
Henry Schreiner
Committed by
GitHub
Aug 23, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: support targeting different Python versions with nox (#3214)
parent
b3d18f38
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
.github/CONTRIBUTING.md
+2
-2
noxfile.py
+3
-1
No files found.
.github/CONTRIBUTING.md
View file @
fdac5fbf
...
@@ -68,8 +68,8 @@ nox -l
...
@@ -68,8 +68,8 @@ nox -l
# Run linters
# Run linters
nox
-s
lint
nox
-s
lint
# Run tests
# Run tests
on Python 3.9
nox
-s
tests
nox
-s
tests
-3.9
# Build and preview docs
# Build and preview docs
nox
-s
docs
--
serve
nox
-s
docs
--
serve
...
...
noxfile.py
View file @
fdac5fbf
...
@@ -2,6 +2,8 @@ import nox
...
@@ -2,6 +2,8 @@ import nox
nox
.
options
.
sessions
=
[
"lint"
,
"tests"
,
"tests_packaging"
]
nox
.
options
.
sessions
=
[
"lint"
,
"tests"
,
"tests_packaging"
]
PYTHON_VERISONS
=
[
"2.7"
,
"3.5"
,
"3.6"
,
"3.7"
,
"3.8"
,
"3.9"
,
"3.10"
]
@nox.session
(
reuse_venv
=
True
)
@nox.session
(
reuse_venv
=
True
)
def
lint
(
session
:
nox
.
Session
)
->
None
:
def
lint
(
session
:
nox
.
Session
)
->
None
:
...
@@ -12,7 +14,7 @@ def lint(session: nox.Session) -> None:
...
@@ -12,7 +14,7 @@ def lint(session: nox.Session) -> None:
session
.
run
(
"pre-commit"
,
"run"
,
"-a"
)
session
.
run
(
"pre-commit"
,
"run"
,
"-a"
)
@nox.session
@nox.session
(
python
=
PYTHON_VERISONS
)
def
tests
(
session
:
nox
.
Session
)
->
None
:
def
tests
(
session
:
nox
.
Session
)
->
None
:
"""
"""
Run the tests (requires a compiler).
Run the tests (requires a compiler).
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment