Skip to content

Commit 47cb7e4

Browse files
authored
Merge pull request #2960 from PolicyEngine/fix/fix-push-action
Downgrade Python, make deploy dependent on successful version check
2 parents c7b1e05 + c473145 commit 47cb7e4

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

.github/workflows/push.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
- name: Setup Python
3737
uses: actions/setup-python@v5
3838
with:
39-
python-version: "3.13"
39+
python-version: "3.11"
4040
- name: GCP authentication
4141
uses: "google-github-actions/auth@v2"
4242
with:
@@ -65,7 +65,7 @@ jobs:
6565
- name: Setup Python
6666
uses: actions/setup-python@v5
6767
with:
68-
python-version: "3.13"
68+
python-version: "3.11"
6969
- name: Build changelog
7070
run: pip install yaml-changelog && make changelog
7171
- name: Preview changelog update
@@ -80,6 +80,7 @@ jobs:
8080
deploy:
8181
name: Deploy API
8282
runs-on: ubuntu-latest
83+
needs: ensure-model-version-aligns-with-sim-api
8384
if: |
8485
(github.repository == 'PolicyEngine/policyengine-api')
8586
&& (github.event.head_commit.message == 'Update PolicyEngine API')
@@ -89,7 +90,7 @@ jobs:
8990
- name: Setup Python
9091
uses: actions/setup-python@v5
9192
with:
92-
python-version: "3.13"
93+
python-version: "3.11"
9394
- name: Publish Git Tag
9495
run: ".github/publish-git-tag.sh"
9596
- name: GCP authentication
@@ -110,6 +111,7 @@ jobs:
110111
docker:
111112
name: Docker
112113
runs-on: ubuntu-latest
114+
needs: ensure-model-version-aligns-with-sim-api
113115
steps:
114116
- name: Checkout repo
115117
uses: actions/checkout@v4

changelog_entry.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
- bump: patch
2+
changes:
3+
changed:
4+
- Downgraded push action Python versions to 3.11 to fix faiss-cpu install error.
5+
- Ensured deploy occurs after checking that API can run with updated model version.

0 commit comments

Comments
 (0)