diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index e9625fb06..6092a678e 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -22,8 +22,22 @@ jobs: - name: Checkout uses: actions/checkout@v4 - - name: Write commit SHA to file - run: echo "${{ github.sha }}" >> benefits/static/sha.txt + - uses: actions/setup-python@v4 + with: + python-version-file: .github/workflows/.python-version + cache: pip + cache-dependency-path: "**/pyproject.toml" + + - name: Install package in virtual env + run: | + python -m venv .venv + source .venv/bin/activate + pip install -e . + + - name: Write app metadata to static files + run: | + echo "${{ github.sha }}" >> benefits/static/sha.txt + pip freeze >> benefits/static/requirements.txt - name: Docker Login to GitHub Container Registry uses: docker/login-action@v3