Skip to content

Commit

Permalink
👷 Allow GitHub workflow dispatch to trigger test and deploy (#93)
Browse files Browse the repository at this point in the history
* 👷 Allow GitHub workflow dispatch to trigger test and deploy

* 📌 Pin install and deploy dependencies
  • Loading branch information
tiangolo authored Jun 9, 2021
1 parent 2eb3f77 commit 2922c58
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- master
workflow_dispatch:

jobs:
build:
Expand Down Expand Up @@ -35,7 +36,7 @@ jobs:
with:
python-version: "3.7"
- name: Install Dependencies
run: python3.7 -m pip install docker pytest
run: python3.7 -m pip install "docker>=4.4.4,<5.0.0" "pytest>=6.2.4,<7.0.0"
- name: Deploy Image
run: bash scripts/build-push.sh
env:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
pull_request:
types: [opened, synchronize]
workflow_dispatch:

jobs:
build:
Expand Down Expand Up @@ -35,7 +36,7 @@ jobs:
with:
python-version: "3.7"
- name: Install Dependencies
run: python3.7 -m pip install docker pytest
run: python3.7 -m pip install "docker>=4.4.4,<5.0.0" "pytest>=6.2.4,<7.0.0"
- name: Test Image
run: bash scripts/test.sh
env:
Expand Down

0 comments on commit 2922c58

Please sign in to comment.