Skip to content

Commit

Permalink
activated venv
Browse files Browse the repository at this point in the history
  • Loading branch information
santacodes committed Jul 22, 2024
1 parent 0d62a83 commit 91ce077
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/test_on_push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand All @@ -128,4 +130,5 @@ jobs:
- name: Test generated project
working-directory: ./pybamm_example_project
run: |
source ../venv/bin/activate
nox -s generated-project-tests
4 changes: 2 additions & 2 deletions {{cookiecutter.project_name}}/noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 91ce077

Please sign in to comment.