Skip to content

Commit

Permalink
Explicitly install Python in CD workflows
Browse files Browse the repository at this point in the history
GitHub Actions' switch to Ubuntu 24.04 breaks the deploy workflows.
We currently use `pip` to install the `build` package prior to packaging
the `dandiapi` sdist. But, we do not explicitly install the Python
runtime before doing this. It looks `pip` was available on the default
Ubuntu 22.04 runners, but not 24.04, so this was basically working by
accident before.
  • Loading branch information
mvandenburgh committed Oct 15, 2024
1 parent b239530 commit 883b3f5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/backend-production-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ jobs:
fetch-depth: 0 # fetch history for all branches and tags
ref: release

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"

- name: Install Heroku CLI
run: curl https://cli-assets.heroku.com/install.sh | sh

Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/backend-staging-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ jobs:
with:
fetch-depth: 0 # fetch history for all branches and tags

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"

- name: Install Heroku CLI
run: curl https://cli-assets.heroku.com/install.sh | sh

Expand Down

0 comments on commit 883b3f5

Please sign in to comment.