Skip to content

Commit a9fd323

Browse files
updated heroku deploy action
1 parent 5138b4c commit a9fd323

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

.github/workflows/model-training.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
- name: Setup Python und install requirements
1111
uses: actions/setup-python@v4
1212
with:
13-
python-version: "3.8"
13+
python-version: "3.10"
1414
- run: pip install -r requirements.txt
1515

1616
- name: Train model

.github/workflows/production-deployment.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- name: Set up Python
2222
uses: actions/setup-python@v2
2323
with:
24-
python-version: "3.9"
24+
python-version: "3.10"
2525

2626
- name: Install dependencies
2727
run: pip install -r requirements.txt
@@ -43,6 +43,10 @@ jobs:
4343
git commit -m "[CI] update trained model" || echo "No changes to commit"
4444
git push --set-upstream origin heroku
4545
46+
- name: Install Heroku CLI
47+
run: |
48+
curl https://cli-assets.heroku.com/install.sh | sh
49+
4650
- name: Deploy to Heroku
4751
uses: akhileshns/heroku-deploy@v3.13.15
4852
with:

runtime.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
python-3.10.15

0 commit comments

Comments
 (0)