Skip to content

Commit

Permalink
refactor: Handle local/CI installation in make setup
Browse files Browse the repository at this point in the history
Issue-8: #8
  • Loading branch information
pawamoy committed Mar 19, 2024
1 parent e423892 commit bddbbba
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
5 changes: 1 addition & 4 deletions project/.github/workflows/ci.yml.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -114,10 +114,7 @@ jobs:
run: pip install uv

- name: Install dependencies
run: |
uv venv
uv pip install -r devdeps.txt
uv pip install "{{ python_package_distribution_name }} @ ."
run: make setup

- name: Run the test suite
run: make test
6 changes: 5 additions & 1 deletion project/scripts/make → project/scripts/make.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@ prefix=""
# as well as current project in editable mode.
uv_install() {
uv pip compile pyproject.toml devdeps.txt | uv pip install -r -
uv pip install -e .
if [ -z "${CI}" ]; then
uv pip install -e .
else
uv pip install "{{ python_package_distribution_name }} @ ."
fi
}


Expand Down

0 comments on commit bddbbba

Please sign in to comment.