From 0a961c2e0d59befb1d5195eb7a5d3a1310c81a5b Mon Sep 17 00:00:00 2001 From: Kegan Maher Date: Tue, 19 Sep 2023 10:48:50 -0700 Subject: [PATCH 1/2] chore(deploy): pip freeze to a static file similar to having the SHA, will help confirm changes and debug --- .github/workflows/deploy.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index e9625fb06..7a2a83d6f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -22,6 +22,20 @@ jobs: - name: Checkout uses: actions/checkout@v4 + - uses: actions/setup-python@v4 + with: + python-version-file: .github/workflows/.python-version + cache: pip + cache-dependency-path: "**/pyproject.toml" + + - name: Write python packages to file + run: | + python -m venv .venv + source .venv/bin/activate + pip install -e . + pip freeze + pip freeze >> benefits/static/requirements.txt + - name: Write commit SHA to file run: echo "${{ github.sha }}" >> benefits/static/sha.txt From 280e9d9c0b636ffff810fa0aec3b1ccc35b145f4 Mon Sep 17 00:00:00 2001 From: Kegan Maher Date: Wed, 27 Sep 2023 10:29:19 -0700 Subject: [PATCH 2/2] chore(deploy): use pipdeptree instead of pip freeze --- .github/workflows/deploy.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 7a2a83d6f..0eff8aa05 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -32,9 +32,10 @@ jobs: run: | python -m venv .venv source .venv/bin/activate + pip install pipdeptree pip install -e . - pip freeze - pip freeze >> benefits/static/requirements.txt + pipdeptree + pipdeptree >> benefits/static/requirements.txt - name: Write commit SHA to file run: echo "${{ github.sha }}" >> benefits/static/sha.txt