-
Notifications
You must be signed in to change notification settings - Fork 56
add local tests and static analysis workflows using GitHub Actions #134
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
Closed
Closed
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
70023fe
add local tests and static analysis workflows
mattsb42-aws c0930ac
Merge branch 'master' into ga
mattsb42-aws b5dcb5e
add integ test workflow
mattsb42-aws fb1c351
Merge branch 'ga' of github.com:mattsb42-aws/aws-dynamodb-encryption-…
mattsb42-aws 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 hidden or 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,50 @@ | ||
name: Local Tests | ||
|
||
# For now, just run these on every PR for consistency. | ||
# Later we'll probably move these to only run on promotion PRs. | ||
on: [pull_request] | ||
|
||
jobs: | ||
tests: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: true | ||
matrix: | ||
os: | ||
- ubuntu-latest | ||
- windows-latest | ||
- macos-latest | ||
python: | ||
- 2.7 | ||
- 3.4 | ||
- 3.5 | ||
- 3.6 | ||
- 3.7 | ||
- 3.8 | ||
- 3.x | ||
categories: | ||
- integ-slow | ||
# x86 builds are only meaningful for Windows | ||
exclude: | ||
- os: ubuntu-latest | ||
architecture: x86 | ||
- os: macos-latest | ||
architecture: x86 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v1 | ||
with: | ||
python-version: ${{ matrix.python }} | ||
architecture: ${{ matrix.architecture }} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this implicit? Shouldn't there be an architecture in the matrix? |
||
- uses: aws-actions/[email protected] | ||
with: | ||
aws-access-key-id: ${{ secrets.INTEG_AWS_ACCESS_KEY_ID }} | ||
aws-secret-access-key: ${{ secrets.INTEG_AWS_SECRET_ACCESS_KEY }} | ||
aws-region: us-west-2 | ||
- run: | | ||
python -m pip install --upgrade pip | ||
pip install --upgrade tox | ||
- name: run test | ||
env: | ||
TOXENV: ${{ matrix.category }} | ||
run: tox -- -vv |
This file contains hidden or 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,43 @@ | ||
name: Local Tests | ||
|
||
on: [pull_request] | ||
|
||
jobs: | ||
tests: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: true | ||
matrix: | ||
os: | ||
- ubuntu-latest | ||
- windows-latest | ||
- macos-latest | ||
python: | ||
- 2.7 | ||
- 3.4 | ||
- 3.5 | ||
- 3.6 | ||
- 3.7 | ||
- 3.8 | ||
- 3.x | ||
categories: | ||
- local-slow | ||
# x86 builds are only meaningful for Windows | ||
exclude: | ||
- os: ubuntu-latest | ||
architecture: x86 | ||
- os: macos-latest | ||
architecture: x86 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v1 | ||
with: | ||
python-version: ${{ matrix.python }} | ||
architecture: ${{ matrix.architecture }} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same as above, where is this defined? |
||
- run: | | ||
python -m pip install --upgrade pip | ||
pip install --upgrade tox | ||
- name: run test | ||
env: | ||
TOXENV: ${{ matrix.category }} | ||
run: tox -- -vv |
This file contains hidden or 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,39 @@ | ||
name: Static Analysis Checks | ||
|
||
on: [pull_request] | ||
|
||
jobs: | ||
analysis: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
category: | ||
- bandit | ||
- doc8 | ||
- readme | ||
- docs | ||
- flake8-examples | ||
- pylint-examples | ||
# Disabled pending completion of cleanup | ||
# https://github.com/aws/aws-dynamodb-encryption-python/issues/67 | ||
# - flake8 | ||
# - pylint | ||
# - flake8-tests | ||
# - pylint-tests | ||
# Disabled pending completion of integration | ||
# https://github.com/aws/aws-dynamodb-encryption-python/issues/66 | ||
# - mypy-py2 | ||
# - mypy-py3 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v1 | ||
with: | ||
python-version: 3.x | ||
- run: | | ||
python -m pip install --upgrade pip | ||
pip install --upgrade tox | ||
- name: check | ||
env: | ||
TOXENV: ${{ matrix.category }} | ||
run: tox -- -vv |
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.
name: Integ Tests