-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #89 from matthew-t-smith/dev/mthomas
test: new GitHub Actions for front, back, Docker; increase PyWorkflow coverage to 83%
- Loading branch information
Showing
13 changed files
with
351 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# This workflow tests building the Docker images and starting containers | ||
|
||
name: Test Docker build | ||
|
||
on: | ||
push: | ||
pull_request: | ||
branches: [ master ] | ||
|
||
jobs: | ||
build-docker: | ||
runs-on: ubuntu-latest | ||
steps: | ||
# Checks-out your repository, for access in the workflow | ||
- uses: actions/checkout@v2 | ||
|
||
# Build containers | ||
- name: Build docker container | ||
run: docker-compose build | ||
|
||
# Run containers | ||
- name: Start Docker containers | ||
run: docker-compose up -d |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# This workflow tests front-end | ||
|
||
name: Test front-end | ||
|
||
on: | ||
push: | ||
pull_request: | ||
branches: [ master ] | ||
|
||
jobs: | ||
test-front-end: | ||
runs-on: ubuntu-latest | ||
steps: | ||
# Checks-out your repository, for access in the workflow | ||
- uses: actions/checkout@v2 | ||
- name: Install dependencies | ||
run: | | ||
cd front-end | ||
npm ci | ||
- name: Run unit tests | ||
run: | | ||
cd front-end | ||
npm test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
[run] | ||
omit= | ||
*/.local/share/virtualenvs/* | ||
./tests/* | ||
./tests/* | ||
./nodes/custom_nodes/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -113,7 +113,7 @@ def to_json(self): | |
} | ||
|
||
def __str__(self): | ||
return "Test" | ||
return self.name | ||
|
||
|
||
class FlowNode(Node): | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.