-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* github actions linting for workflows * trigger on push * try on pull requests * test change workflows directory * fix test call to exclude SWIPE tests * replace model exports * add AWS_REGION * fix lint errors
- Loading branch information
Showing
5 changed files
with
62 additions
and
8 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: Workflows tests | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- "workflows/**" | ||
pull_request: | ||
branches: "**" | ||
paths: | ||
- "workflows/**" | ||
|
||
jobs: | ||
py-lint: | ||
runs-on: [ARM64, self-hosted, Linux] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
# Build images and run linters | ||
- name: Set up deps | ||
run: | | ||
make gha-setup | ||
- name: Lint Python | ||
working-directory: workflows | ||
run: | | ||
make local-build | ||
make check-lint | ||
py-test: | ||
runs-on: [ARM64, self-hosted, Linux] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
# Set up a local dev env and run tests | ||
- name: Set up deps | ||
run: | | ||
make gha-setup | ||
- name: Run tests | ||
working-directory: workflows | ||
run: | | ||
make local-init | ||
make local-db-tests | ||
env: | ||
AWS_REGION: us-west-2 |
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
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,11 @@ | ||
from platformics.database.models.base import Base, meta | ||
from database.models.workflow import Workflow, WorkflowVersion, Run, RunStatus, RunStep, RunEntityInput | ||
from database.models.workflow import ( | ||
Workflow, | ||
WorkflowVersion, | ||
RunStatus, | ||
Run, | ||
RunStep, | ||
RunEntityInput, | ||
) | ||
|
||
__all__ = ["Base", "meta", "Workflow", "WorkflowVersion", "Run", "RunStatus", "RunStep", "RunEntityInput"] |
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