Skip to content

Commit

Permalink
made the workflow uniform
Browse files Browse the repository at this point in the history
  • Loading branch information
santacodes committed Jul 27, 2024
1 parent fd76ebc commit 40a28b7
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 8 deletions.
19 changes: 13 additions & 6 deletions .github/workflows/test_on_push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,14 @@ jobs:
uses: actions/setup-python@v5
with:
python-version: 3.12
cache: 'pip'

- name: Set up uv
uses: yezz123/setup-uv@v4
with:
uv-venv: ".venv"

- name: Install nox
run: python -m pip install nox
run: uv pip install nox[uv]

- name: Check if the documentation can be built
run: nox -s docs
Expand All @@ -109,14 +113,17 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

- name: Set up uv
uses: yezz123/setup-uv@v4
with:
uv-venv: ".venv"

- name: Install cookiecutter and pipx
run: python -m pip install cookiecutter pipx
run: uv pip install cookiecutter nox[uv]

- name: Generate a project using cookiecutter
run: cookiecutter . --no-input

- name: Install nox and test generated project
working-directory: ./pybamm-example-project
run: |
pipx install nox
pipx run nox -s generated-project-tests
run: nox -s generated-project-tests
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,14 @@ jobs:
uses: actions/setup-python@v5
with:
python-version: 3.12
cache: 'pip'

- name: Set up uv
uses: yezz123/setup-uv@v4
with:
uv-venv: ".venv"

- name: Install nox
run: python -m pip install nox
run: uv pip install nox[uv]

- name: Check if the documentation can be built
run: nox -s docs

0 comments on commit 40a28b7

Please sign in to comment.