Skip to content

Commit e0f6628

Browse files
committed
Implement suggestions, and use more Nox sessions in our CI
1 parent 7e59f57 commit e0f6628

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,8 @@ jobs:
8484
- uses: actions/checkout@v2
8585
- uses: actions/setup-python@v2
8686

87-
- run: pip install vendoring
88-
- run: vendoring sync . --verbose
87+
- run: pip install vendoring nox
88+
- run: nox -s vendoring
8989
- run: git diff --exit-code
9090

9191
tests-unix:

noxfile.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,10 @@ def should_update_common_wheels() -> bool:
6363
return need_to_repopulate
6464

6565

66+
67+
# -----------------------------------------------------------------------------
68+
# Development Commands
69+
# -----------------------------------------------------------------------------
6670
@nox.session(python=["3.7", "3.8", "3.9", "3.10", "pypy3"])
6771
def test(session: nox.Session) -> None:
6872
# Get the common wheels.
@@ -220,13 +224,13 @@ def pinned_requirements(path: Path) -> Iterator[Tuple[str, str]]:
220224
@nox.session
221225
def coverage(session: nox.Session) -> None:
222226
if not os.path.exists("./.coverage-output"):
223-
os.mkdir("./coverage-output")
227+
os.mkdir("./.coverage-output")
224228
session.run(
225229
"pytest",
226230
"--cov=pip",
227231
"--cov-config=./setup.cfg",
228232
env={
229-
"COVERAGE_OUTPUT_DIR": "./coverage-output",
233+
"COVERAGE_OUTPUT_DIR": "./.coverage-output",
230234
"COVERAGE_PROCESS_START": "./setup.cfg",
231235
},
232236
)

0 commit comments

Comments
 (0)