-
Notifications
You must be signed in to change notification settings - Fork 0
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 #5 from ai-cfia/4-adding-workflows
4-adding-workflows
- Loading branch information
Showing
6 changed files
with
64 additions
and
9 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,26 @@ | ||
--- | ||
name: ai-cfia workflows | ||
|
||
on: | ||
pull_request: | ||
types: | ||
- opened | ||
- closed | ||
- synchronize | ||
jobs: | ||
python-lint: | ||
name: workflow-lint-test-python | ||
uses: ai-cfia/github-workflows/.github/workflows/workflow-lint-test-python.yml@main | ||
secrets: inherit | ||
mkd-check: | ||
name: workflow-markdown-check | ||
uses: ai-cfia/github-workflows/.github/workflows/workflow-markdown-check.yml@main | ||
secrets: inherit | ||
repo-validation: | ||
name: workflow-repo-standards-validation | ||
uses: ai-cfia/github-workflows/.github/workflows/workflow-repo-standards-validation.yml@main | ||
secrets: inherit | ||
yaml-check: | ||
name: workflow-yaml-check | ||
uses: ai-cfia/github-workflows/.github/workflows/workflow-yaml-check.yml@main | ||
secrets: inherit |
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,2 @@ | ||
**/__pycache__/** | ||
.vscode/settings.json |
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
Empty file.
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,3 @@ | ||
numpy | ||
azure-storage-blob | ||
azure-identity |
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,15 @@ | ||
import os | ||
import unittest | ||
|
||
class EnvironmentVariableError(Exception): | ||
pass | ||
|
||
class Test_Utils(unittest.TestCase): | ||
|
||
def test_secrets(self): | ||
NACHET_SCHEMA = os.getenv("NACHET_SCHEMA") | ||
if not NACHET_SCHEMA: | ||
raise EnvironmentVariableError("NACHET_SCHEMA is not set") | ||
NACHET_DB_URL = os.getenv("NACHET_DB_URL") | ||
if not NACHET_DB_URL: | ||
raise EnvironmentVariableError("NACHET_DB_URL is not set") |