From 4dabfd7ad3e15ec4a0d3a48dd1854f6f388540ea Mon Sep 17 00:00:00 2001 From: Adrian Cederberg Date: Sun, 18 Aug 2024 21:31:36 -0600 Subject: [PATCH] fix(package): No longer using venv volume. --- .github/workflows/commit_checks.yaml | 44 ++++++++++++++-------------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/.github/workflows/commit_checks.yaml b/.github/workflows/commit_checks.yaml index 266de17..2302bf2 100644 --- a/.github/workflows/commit_checks.yaml +++ b/.github/workflows/commit_checks.yaml @@ -134,28 +134,28 @@ jobs: up --detach --quiet-pull - echo -e "## Permissions on \`.venv\`.\n\n" >> $GITHUB_STEP_SUMMARY + # echo -e "## Permissions on \`.venv\`.\n\n" >> $GITHUB_STEP_SUMMARY + # + # echo -e "In container:\n\n~~~" >> $GITHUB_STEP_SUMMARY + # docker compose \ + # --file docker/compose.yaml \ + # exec server \ + # bash -c "ls -lah ~" >> $GITHUB_STEP_SUMMARY + # + # echo -e "~~~\n\nWithin container venv~~~\n\n" >> $GITHUB_STEP_SUMMARY + # docker compose \ + # --file docker/compose.yaml \ + # exec server \ + # bash -c "ls -lah ~/.venv" >> $GITHUB_STEP_SUMMARY + # + # echo -e "~~~\n\nOn host\n\n~~~" >> $GITHUB_STEP_SUMMARY + # ls -lah docker >> $GITHUB_STEP_SUMMARY + # echo "~~~" >> $GITHUB_STEP_SUMMARY - echo -e "In container:\n\n~~~" docker compose \ --file docker/compose.yaml \ exec server \ - bash -c "ls -lah ~" >> $GITHUB_STEP_SUMMARY - - echo -e "~~~\n\nWithin container venv~~~\n\n" >> $GITHUB_STEP_SUMMARY - docker compose \ - --file docker/compose.yaml \ - exec server \ - bash -c "ls -lah ~/.venv" >> $GITHUB_STEP_SUMMARY - - echo -e "~~~\n\nOn host\n\n~~~" >> $GITHUB_STEP_SUMMARY - ls -lah docker >> $GITHUB_STEP_SUMMARY - echo "~~~" >> $GITHUB_STEP_SUMMARY - - docker compose \ - --file docker/compose.yaml \ - exec server \ - bash -c "python -m venv ~/.venv" + bash -c 'mkdir ~/app/.venv && python -m venv ~/app/.venv' # NOTE: ``act.yaml`` defined everything necessary for the client and server. - name: Install Dependencies In Server. @@ -164,7 +164,7 @@ jobs: --file docker/compose.yaml \ exec server \ bash -c ' \ - source ~/.venv/bin/activate \ + source ~/app/.venv/bin/activate \ && pip install --quiet poetry \ && poetry install --with test' @@ -174,7 +174,7 @@ jobs: --file docker/compose.yaml \ exec server \ bash -c ' \ - source ~/.venv/bin/activate \ + source ~/app/.venv/bin/activate \ && poetry run simulatus apply' echo -e "# Dummy Data Report\n\n~~~" >> $GITHUB_STEP_SUMMARY @@ -182,7 +182,7 @@ jobs: --file docker/compose.yaml \ exec server \ bash -c ' \ - source ~/.venv/bin/activate \ + source ~/app/.venv/bin/activate \ && poetry run simulatus --loud reports aggregate' \ >> $GITHUB_STEP_SUMMARY echo -e "~~~\n" >> $GITHUB_STEP_SUMMARY @@ -193,6 +193,6 @@ jobs: --file docker/compose.yaml \ exec server \ bash -c ' \ - source ~/.venv/bin/activate \ + source ~/app/.venv/bin/activate \ && pip install poetry \ && poetry run pytest --count 1'