diff --git a/.github/workflows/test_on_push.yml b/.github/workflows/test_on_push.yml index d677f30..66dd6f4 100644 --- a/.github/workflows/test_on_push.yml +++ b/.github/workflows/test_on_push.yml @@ -114,6 +114,8 @@ jobs: - name: Set up uv uses: yezz123/setup-uv@v4 + with: + uv-venv: ".venv" - name: Install nox run: uv pip install nox[uv] @@ -128,4 +130,5 @@ jobs: - name: Test generated project working-directory: ./pybamm_example_project run: | + source ../venv/bin/activate nox -s generated-project-tests diff --git a/{{cookiecutter.project_name}}/noxfile.py b/{{cookiecutter.project_name}}/noxfile.py index bac543d..76cb1bb 100644 --- a/{{cookiecutter.project_name}}/noxfile.py +++ b/{{cookiecutter.project_name}}/noxfile.py @@ -38,14 +38,14 @@ def build_docs(session: nox.Session) -> None: @nox.session(name="generated-project-tests") def run_generated_project_tests(session): - """Run the tests for testing template generation""" + """Run the tests for testing units inside generated project""" session.install("setuptools", silent=False) session.install("-e", ".[dev]", silent=False) session.run("pytest", "tests/generated_project_tests") @nox.session(name="user-tests") def run_user_tests(session): - """Run the tests for testing template generation""" + """Run the tests for testing user written tests""" session.install("setuptools", silent=False) session.install("-e", ".[dev]", silent=False) session.run("pytest", "tests/user_tests")