Skip to content

Commit

Permalink
Switched to git diffs via dl-git diff-paths
Browse files Browse the repository at this point in the history
  • Loading branch information
altvod committed Oct 18, 2023
1 parent a7796ea commit 765c296
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ jobs:
- name: Get packages affected by changes in the current commit
id: get_affected
run: |
TARGET_DATA=$(bash /src/ci/gh_list_changes.sh ${{ github.event.pull_request.base.sha }} ${{ github.event.pull_request.head.sha }})
TARGET_DATA=$(. /venv/bin/activate && dl-git range-diff-paths --only-added-commits --base ${{ github.event.pull_request.base.sha }} --head ${{ github.event.pull_request.head.sha }})
echo "$TARGET_DATA" > /tmp/targets.json
cat /tmp/targets.json
. /venv/bin/activate && detect-affected-packages \
Expand Down
1 change: 1 addition & 0 deletions docker_build/bake_ci.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ target "ci_with_src" {
"COPY --from=bake_ctx_dl_src_terrarium / /src/",
"COPY --from=bake_ctx_dl_src_ci / /src/",
"RUN . /venv/bin/activate && pip install -e /src/terrarium/bi_ci",
"RUN . /venv/bin/activate && pip install -e /src/terrarium/dl_gitmanager",
"RUN . /venv/bin/activate && cd /src/metapkg/ && poetry install --no-root --with=dev --with=ci",
# todo: include stubs into the metapkg pyproject.toml
"RUN . /venv/bin/activate && pip install -r /src/ci/requirements_types.txt"
Expand Down
2 changes: 1 addition & 1 deletion tools/taskfiles/taskfile_env.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ tasks:
$PYTHON -m venv $VENV_PATH
. $VENV_PATH/bin/activate
pip install -r requirements-localhost.txt
pip install -e $(realpath ../terrarium/dl_repmanager) $(realpath ../terrarium/bi_ci)
pip install -e $(realpath ../terrarium/dl_repmanager) $(realpath ../terrarium/bi_ci) $(realpath ../terrarium/dl_gitmanager)
status:
- test -f $VENV_PATH/bin/activate
# todo: deal with ci to skip ensure_venv
Expand Down

0 comments on commit 765c296

Please sign in to comment.