forked from NCI-GDC/gdcdictionary
-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add GitHub actions #54
Merged
Merged
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
6e2e159
Create ci workflow with unit testing
george42-ctds e47ae04
Include pytest
george42-ctds a129a96
Add linter
george42-ctds 2feeeb2
Fix linter errors
george42-ctds 2fe675e
Fix linter issues
george42-ctds b76cb2e
Fix linter errors
george42-ctds e3f02a2
Fix linter errors
george42-ctds 66dbb48
Fix linter errors
george42-ctds 70b1c1c
Fix linter errors
george42-ctds af74846
Fix linter errors
george42-ctds 61985c2
Re-order imports
george42-ctds 71d4380
Add wool.yaml
george42-ctds 98b47ba
Add blank lines between jobs in ci
george42-ctds 6afd122
Add top level header
george42-ctds aff0e6b
Add image-build-and-push job
george42-ctds 990e6df
fix typos
george42-ctds 2292c4f
Add pypi.yaml
george42-ctds bbca2f8
Remove image-build-and-push
george42-ctds e092907
Add .secrets.baseline
george42-ctds dc47a47
Add pre-commit config
george42-ctds 220a589
Remove whitespace
george42-ctds e6c62f5
Deleted .travis.yml
george42-ctds e18babf
Add clean.sh, include isort/black in pyproject.toml
george42-ctds 41f44f9
Update eol in NOTICE
george42-ctds File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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,48 @@ | ||
# push will run on every pushed commit to any branch (so this will rerun the tests | ||
# once a branch gets merged to main in addition to any new commits on any branch) | ||
on: push | ||
|
||
name: CI | ||
|
||
concurrency: | ||
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}' | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
Security: | ||
name: Security Pipeline | ||
uses: uc-cdis/.github/.github/workflows/securitypipeline.yaml@master | ||
with: | ||
python-poetry: 'true' | ||
secrets: inherit | ||
|
||
UnitTest: | ||
name: Python Unit Test with Postgres | ||
uses: uc-cdis/.github/.github/workflows/python_unit_test.yaml@master | ||
with: | ||
python-version: '3.9' | ||
use-cache: true | ||
|
||
# this creates linter settings and uploads to an artifact so the configs can be pulled and used across jobs | ||
LintConfig: | ||
name: Get Lint Config | ||
uses: uc-cdis/.github/.github/workflows/lint-create-config.yaml@master | ||
with: | ||
python-module-name: "gen3Dictionary" | ||
|
||
RequiredLint: | ||
name: Run Required Linters | ||
needs: [ LintConfig ] | ||
uses: uc-cdis/.github/.github/workflows/required_lint_check.yaml@master | ||
with: | ||
python-version: '3.9' | ||
use-cache: true | ||
|
||
InformationalLint: | ||
name: Run Informational Linters | ||
needs: [ LintConfig ] #TODO Add UnitTest | ||
if: github.ref != 'refs/heads/main' | ||
uses: uc-cdis/.github/.github/workflows/optional_lint_check.yaml@master | ||
with: | ||
python-version: '3.9' | ||
use-cache: true |
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,16 @@ | ||
name: PyPI | ||
on: | ||
push: | ||
tags: | ||
- '*' | ||
jobs: | ||
PyPIPoetryPublish: | ||
name: PyPI Poetry Publish | ||
uses: uc-cdis/.github/.github/workflows/python_package_index_publish.yaml@master | ||
with: | ||
PYTHON_VERSION: '3.9' | ||
# This will attempt push to test PyPI first and only push to prod if it works | ||
DO_TEST_PUBLISH_FIRST: true | ||
secrets: | ||
PYPI_TEST_API_TOKEN: ${{ secrets.PYPI_TEST_API_TOKEN }} | ||
PYPI_PROD_API_TOKEN: ${{ secrets.PYPI_PROD_API_TOKEN }} |
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 @@ | ||
on: | ||
pull_request | ||
|
||
name: Wool | ||
|
||
jobs: | ||
runWool: | ||
name: Run black | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@master | ||
|
||
- uses: uc-cdis/wool@master | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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,20 @@ | ||
repos: | ||
- repo: [email protected]:Yelp/detect-secrets | ||
rev: v1.5.0 | ||
hooks: | ||
- id: detect-secrets | ||
args: [ '--baseline', '.secrets.baseline' ] | ||
exclude: poetry.lock | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v5.0.0 | ||
hooks: | ||
- id: trailing-whitespace | ||
exclude: ^(gdcdictionary/schemas/|gdcdictionary/examples/valid/) | ||
- id: end-of-file-fixer | ||
exclude: ^(gdcdictionary/schemas/|gdcdictionary/examples/valid/) | ||
- id: no-commit-to-branch | ||
args: [ --branch, develop, --branch, master, --pattern, release/.* ] | ||
- repo: https://github.com/psf/black | ||
rev: 24.10.0 | ||
hooks: | ||
- id: black |
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,225 @@ | ||
{ | ||
"version": "1.5.0", | ||
"plugins_used": [ | ||
{ | ||
"name": "ArtifactoryDetector" | ||
}, | ||
{ | ||
"name": "AWSKeyDetector" | ||
}, | ||
{ | ||
"name": "AzureStorageKeyDetector" | ||
}, | ||
{ | ||
"name": "Base64HighEntropyString", | ||
"limit": 4.5 | ||
}, | ||
{ | ||
"name": "BasicAuthDetector" | ||
}, | ||
{ | ||
"name": "CloudantDetector" | ||
}, | ||
{ | ||
"name": "DiscordBotTokenDetector" | ||
}, | ||
{ | ||
"name": "GitHubTokenDetector" | ||
}, | ||
{ | ||
"name": "GitLabTokenDetector" | ||
}, | ||
{ | ||
"name": "HexHighEntropyString", | ||
"limit": 3.0 | ||
}, | ||
{ | ||
"name": "IbmCloudIamDetector" | ||
}, | ||
{ | ||
"name": "IbmCosHmacDetector" | ||
}, | ||
{ | ||
"name": "IPPublicDetector" | ||
}, | ||
{ | ||
"name": "JwtTokenDetector" | ||
}, | ||
{ | ||
"name": "KeywordDetector", | ||
"keyword_exclude": "" | ||
}, | ||
{ | ||
"name": "MailchimpDetector" | ||
}, | ||
{ | ||
"name": "NpmDetector" | ||
}, | ||
{ | ||
"name": "OpenAIDetector" | ||
}, | ||
{ | ||
"name": "PrivateKeyDetector" | ||
}, | ||
{ | ||
"name": "PypiTokenDetector" | ||
}, | ||
{ | ||
"name": "SendGridDetector" | ||
}, | ||
{ | ||
"name": "SlackDetector" | ||
}, | ||
{ | ||
"name": "SoftlayerDetector" | ||
}, | ||
{ | ||
"name": "SquareOAuthDetector" | ||
}, | ||
{ | ||
"name": "StripeDetector" | ||
}, | ||
{ | ||
"name": "TelegramBotTokenDetector" | ||
}, | ||
{ | ||
"name": "TwilioKeyDetector" | ||
} | ||
], | ||
"filters_used": [ | ||
{ | ||
"path": "detect_secrets.filters.allowlist.is_line_allowlisted" | ||
}, | ||
{ | ||
"path": "detect_secrets.filters.common.is_ignored_due_to_verification_policies", | ||
"min_level": 2 | ||
}, | ||
{ | ||
"path": "detect_secrets.filters.heuristic.is_indirect_reference" | ||
}, | ||
{ | ||
"path": "detect_secrets.filters.heuristic.is_likely_id_string" | ||
}, | ||
{ | ||
"path": "detect_secrets.filters.heuristic.is_lock_file" | ||
}, | ||
{ | ||
"path": "detect_secrets.filters.heuristic.is_not_alphanumeric_string" | ||
}, | ||
{ | ||
"path": "detect_secrets.filters.heuristic.is_potential_uuid" | ||
}, | ||
{ | ||
"path": "detect_secrets.filters.heuristic.is_prefixed_with_dollar_sign" | ||
}, | ||
{ | ||
"path": "detect_secrets.filters.heuristic.is_sequential_string" | ||
}, | ||
{ | ||
"path": "detect_secrets.filters.heuristic.is_swagger_file" | ||
}, | ||
{ | ||
"path": "detect_secrets.filters.heuristic.is_templated_secret" | ||
} | ||
], | ||
"results": { | ||
".github/workflows/ci.yml": [ | ||
{ | ||
"type": "Secret Keyword", | ||
"filename": ".github/workflows/ci.yml", | ||
"hashed_secret": "3e26d6750975d678acb8fa35a0f69237881576b0", | ||
"is_verified": false, | ||
"line_number": 17 | ||
} | ||
], | ||
".travis.yml": [ | ||
{ | ||
"type": "Base64 High Entropy String", | ||
"filename": ".travis.yml", | ||
"hashed_secret": "a5550bd57663a78c1cd9ffd31148627d780a5e94", | ||
"is_verified": false, | ||
"line_number": 9 | ||
}, | ||
{ | ||
"type": "Base64 High Entropy String", | ||
"filename": ".travis.yml", | ||
"hashed_secret": "9367bab27f27511665862beae3dad6468998f4a5", | ||
"is_verified": false, | ||
"line_number": 10 | ||
} | ||
], | ||
"gdcdictionary/examples/valid/aligned_reads_index.json": [ | ||
{ | ||
"type": "Hex High Entropy String", | ||
"filename": "gdcdictionary/examples/valid/aligned_reads_index.json", | ||
"hashed_secret": "a1ba33896d16eda8522e531edbaf3b625c1f4c31", | ||
"is_verified": false, | ||
"line_number": 6 | ||
} | ||
], | ||
"gdcdictionary/examples/valid/experimental_metadata.json": [ | ||
{ | ||
"type": "Hex High Entropy String", | ||
"filename": "gdcdictionary/examples/valid/experimental_metadata.json", | ||
"hashed_secret": "daef34f66b6e909f3a22ffd063d48eb428067b6e", | ||
"is_verified": false, | ||
"line_number": 6 | ||
} | ||
], | ||
"gdcdictionary/examples/valid/slide_image.json": [ | ||
{ | ||
"type": "Hex High Entropy String", | ||
"filename": "gdcdictionary/examples/valid/slide_image.json", | ||
"hashed_secret": "daef34f66b6e909f3a22ffd063d48eb428067b6e", | ||
"is_verified": false, | ||
"line_number": 6 | ||
} | ||
], | ||
"gdcdictionary/examples/valid/submitted_aligned_reads.json": [ | ||
{ | ||
"type": "Hex High Entropy String", | ||
"filename": "gdcdictionary/examples/valid/submitted_aligned_reads.json", | ||
"hashed_secret": "e3f181b6b92d74e30d524d03029e785d0c7c7535", | ||
"is_verified": false, | ||
"line_number": 7 | ||
} | ||
], | ||
"gdcdictionary/examples/valid/submitted_copy_number.json": [ | ||
{ | ||
"type": "Hex High Entropy String", | ||
"filename": "gdcdictionary/examples/valid/submitted_copy_number.json", | ||
"hashed_secret": "e3f181b6b92d74e30d524d03029e785d0c7c7535", | ||
"is_verified": false, | ||
"line_number": 6 | ||
} | ||
], | ||
"gdcdictionary/examples/valid/submitted_methylation.json": [ | ||
{ | ||
"type": "Hex High Entropy String", | ||
"filename": "gdcdictionary/examples/valid/submitted_methylation.json", | ||
"hashed_secret": "e3f181b6b92d74e30d524d03029e785d0c7c7535", | ||
"is_verified": false, | ||
"line_number": 7 | ||
} | ||
], | ||
"gdcdictionary/examples/valid/submitted_somatic_mutation.json": [ | ||
{ | ||
"type": "Hex High Entropy String", | ||
"filename": "gdcdictionary/examples/valid/submitted_somatic_mutation.json", | ||
"hashed_secret": "a1ba33896d16eda8522e531edbaf3b625c1f4c31", | ||
"is_verified": false, | ||
"line_number": 9 | ||
} | ||
], | ||
"gdcdictionary/examples/valid/submitted_unaligned_reads.json": [ | ||
{ | ||
"type": "Hex High Entropy String", | ||
"filename": "gdcdictionary/examples/valid/submitted_unaligned_reads.json", | ||
"hashed_secret": "88e3a7adc1779a311467797f00d2edc5e9697d9c", | ||
"is_verified": false, | ||
"line_number": 7 | ||
} | ||
] | ||
}, | ||
"generated_at": "2025-01-10T20:22:28Z" | ||
} |
This file was deleted.
Oops, something went wrong.
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 +1,18 @@ | ||
Copyright 2015 University of Chicago, Ontario Institute for Cancer ResearchLicensed under the Apache License, Version 2.0 (the "License");you may not use this file except in compliance with the License.You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing,software distributed under the License is distributed on an "AS IS" BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.See the License for the specific language governing permissions andlimitations under the License.Portions of this work, authored by University of Chicago andOntario Institute for Cancer Research employees, was funded in whole or in partby National Cancer Institute, National Institutes of Healthunder U.S. Government contract HHSN261200800001E. | ||
Copyright 2015 University of Chicago, Ontario Institute for Cancer Research | ||
|
||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
|
||
http://www.apache.org/licenses/LICENSE-2.0 | ||
|
||
Unless required by applicable law or agreed to in writing, | ||
software distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
|
||
Portions of this work, authored by University of Chicago and | ||
Ontario Institute for Cancer Research employees, was funded in whole or in part | ||
by National Cancer Institute, National Institutes of Health | ||
under U.S. Government contract HHSN261200800001E. |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing some space characters (i.e. ResearchLicensed, Version 2.0 (the "License");you, compliance with the License.You may)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for catching that! It looked fine in Visual Studio so I used vi to fix.