Skip to content

Commit 6bc4678

Browse files
committed
test suite fixes
1 parent ffc7f38 commit 6bc4678

File tree

3 files changed

+5
-49
lines changed

3 files changed

+5
-49
lines changed

.github/workflows/test.yaml

Lines changed: 0 additions & 31 deletions
This file was deleted.

.github/workflows/test.yml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,22 +13,17 @@ jobs:
1313
runs-on: ubuntu-latest
1414
strategy:
1515
matrix:
16-
python-version: ["3.7", "3.8", "3.9", "3.10"]
16+
python-version: ["3.9", "3.10", "3.11"]
1717
steps:
1818
- uses: actions/checkout@v2
19-
- uses: nanasess/setup-chromedriver@master
2019
- uses: actions/setup-node@v2-beta
2120
with:
22-
node-version: "12"
23-
- name: Install latest NPM
24-
run: |
25-
npm install -g npm@latest
26-
npm --version
21+
node-version: "14"
2722
- name: Use Python ${{ matrix.python-version }}
2823
uses: actions/setup-python@v2
2924
with:
3025
python-version: ${{ matrix.python-version }}
3126
- name: Create Repo From Template
3227
run: |
3328
pip install nox
34-
nox -s test
29+
nox -t test

noxfile.py

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
from contextlib import contextmanager
21
from functools import wraps
32
from pathlib import Path
43
from shutil import rmtree
5-
from tempfile import TemporaryDirectory
64
from typing import Callable
75

86
from nox import Session, session
@@ -50,13 +48,7 @@ def wrapper(session: Session) -> None:
5048
return wrapper
5149

5250

53-
@session
54-
def test(session: Session) -> None:
55-
session.notify("test_suite", posargs=session.posargs)
56-
session.notify("test_style")
57-
58-
59-
@session
51+
@session(tags=["test"])
6052
@build_test_repo()
6153
@install_latest_reactpy
6254
def test_suite(session: Session) -> None:
@@ -65,7 +57,7 @@ def test_suite(session: Session) -> None:
6557
session.run("pytest", "tests", "--import-mode=importlib", *session.posargs)
6658

6759

68-
@session
60+
@session(tags=["test"])
6961
@build_test_repo(install=False)
7062
def test_style(session: Session) -> None:
7163
session.install("black", "flake8")

0 commit comments

Comments
 (0)