Skip to content

Commit

Permalink
Install Python in GHA deployment runner
Browse files Browse the repository at this point in the history
Without this step, the pyproject.toml file is not correctly parsed, see
e.g. this action which fails:

https://github.com/Urban-Analytics-Technology-Platform/web-app-template/actions/runs/9894661493/job/27332702540#step:7:108

Notice that the package name is UNKNOWN and the wheel file is
UNKNOWN-0.0.0-py3-none-any.whl. This causes the web template to break
because it expects my-python-module.<stuff>.whl.

I think this is essentially an extension of
pypa/setuptools#3269. Installing a proper
version of Python (which presumably includes pip and setuptools) fixes
this issue.
  • Loading branch information
penelopeysm committed Jul 11, 2024
1 parent ff91a7f commit f613403
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/web.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ jobs:
path: packages/create-web/template/rust_backend/target
key: rust_backend

- name: Install Python
uses: actions/setup-python@v4
with:
python-version: '3.12'

- name: Build ua-components
working-directory: packages/components
run: |
Expand Down

0 comments on commit f613403

Please sign in to comment.