Skip to content

Commit

Permalink
Update GitHub workflows
Browse files Browse the repository at this point in the history
Separated the deploy and test workflow so that pull requests dont generate a new docker image
  • Loading branch information
joeyvanlierop committed Jun 23, 2020
1 parent e122026 commit d915533
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 3 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
name: Build docker container
name: Publish docker container

on:
push:
branches: [master]
pull_request:
branches: [master]

jobs:
test:
Expand Down
23 changes: 23 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Run python tests

on:
pull_request:
branches: [master]

jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.8"

- name: Install dependencies
run: pip install -r requirements.txt

- name: Run tests
run: python -m unittest

0 comments on commit d915533

Please sign in to comment.