-
Notifications
You must be signed in to change notification settings - Fork 152
test: Add GH Actions #410
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
Merged
Merged
test: Add GH Actions #410
Changes from all commits
Commits
Show all changes
38 commits
Select commit
Hold shift + click to select a range
2382455
Add GH action
mildaniel 11775dc
Update ruby version
mildaniel 5df4023
Test conditional windows integration
mildaniel 0641375
Test conditional windows integration
mildaniel 41cd3d3
Separate tests
mildaniel 434f7ef
Separate tests
mildaniel 8873bd3
Separate tests
mildaniel aa571fc
Separate tests
mildaniel 9b65888
Separate tests
mildaniel 1080100
Separate tests
mildaniel 4942f36
Fix pytest command
mildaniel 912397d
Fix pytest command
mildaniel 5ec8fea
Fix typo
mildaniel 466d6fd
Fix typo
mildaniel 3efefc6
Fix typo
mildaniel 903dc3d
Fix typo
mildaniel 7d667de
Fix typo
mildaniel e1aae00
Fix typo
mildaniel 8a38e35
Comment out some tests
mildaniel a46c942
Add custom make
mildaniel 2f2274a
Add custom make
mildaniel 467e587
test gradle
mildaniel 8904e95
Add custom make
mildaniel 2aafb69
Add reminaing runtimes
mildaniel 0b3fa79
Use Java Zulu distro
mildaniel c6b5a97
Add env variable
mildaniel 14300e9
Fix typo
mildaniel 1202d4f
Merge branch 'develop' into github-actions-jobs
mildaniel 292e9f6
Fix node tests
mildaniel f1dcbfa
Merge branch 'github-actions-jobs' of github.com:mildaniel/aws-lambda…
mildaniel 5203be1
Fix unit tests
mildaniel df21673
Merge branch 'develop' into github-actions-jobs
mildaniel 22e02c8
Reformat pyproj
mildaniel 14eb894
Merge branch 'github-actions-jobs' of github.com:mildaniel/aws-lambda…
mildaniel 8217ae4
Add ruby 2.7 tests
mildaniel adaf0d8
Fix typo
mildaniel f798592
Use newer ruby action
mildaniel 05a1588
Use newer ruby action
mildaniel 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,255 @@ | ||
| name: Build & Test | ||
|
|
||
| on: | ||
| pull_request | ||
|
|
||
| jobs: | ||
| unit-functional: | ||
| name: ${{ matrix.os }} / ${{ matrix.python }} / unit-functional | ||
| runs-on: ${{ matrix.os }} | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| os: | ||
| - ubuntu-latest | ||
| - windows-latest | ||
| python: | ||
| - "3.7" | ||
| - "3.8" | ||
| - "3.9" | ||
| steps: | ||
| - uses: actions/checkout@v3 | ||
| - uses: actions/setup-python@v4 | ||
| with: | ||
| python-version: ${{ matrix.python }} | ||
| - name: Unit Testing | ||
| run: make pr | ||
| - name: Functional Testing | ||
| run: make func-test | ||
|
|
||
| node-integration: | ||
| name: ${{ matrix.os }} / ${{ matrix.python }} / node / npm ${{ matrix.npm }}.x | ||
| runs-on: ${{ matrix.os }} | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| os: | ||
| - ubuntu-latest | ||
| - windows-latest | ||
| python: | ||
| - "3.7" | ||
| - "3.8" | ||
| - "3.9" | ||
| npm: | ||
| - 8 | ||
| - 9 | ||
| steps: | ||
| - uses: actions/checkout@v3 | ||
| - uses: actions/setup-python@v4 | ||
| with: | ||
| python-version: ${{ matrix.python }} | ||
| - uses: actions/setup-node@v3 | ||
| with: | ||
| node-version: 18 | ||
| - if: ${{ matrix.npm }} | ||
| run: npm install -g npm@${{ matrix.npm }} | ||
| - run: npm --version | ||
| - run: make init | ||
| - run: pytest -vv tests/integration/workflows/nodejs_npm | ||
|
|
||
| node-esbuild-integration: | ||
| name: ${{ matrix.os }} / ${{ matrix.python }} / esbuild / npm ${{ matrix.npm }}.x | ||
| runs-on: ${{ matrix.os }} | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| os: | ||
| - ubuntu-latest | ||
| - windows-latest | ||
| python: | ||
| - "3.7" | ||
| - "3.8" | ||
| - "3.9" | ||
| npm: | ||
| - 8 | ||
| - 9 | ||
| steps: | ||
| - uses: actions/checkout@v3 | ||
| - uses: actions/setup-python@v4 | ||
| with: | ||
| python-version: ${{ matrix.python }} | ||
| - uses: actions/setup-node@v3 | ||
| with: | ||
| node-version: 18 | ||
| - if: ${{ matrix.npm }} | ||
| run: npm install -g npm@${{ matrix.npm }} | ||
| - run: npm --version | ||
| - run: make init | ||
| - run: pytest -vv tests/integration/workflows/nodejs_npm_esbuild | ||
|
|
||
| golang-integration: | ||
| name: ${{ matrix.os }} / ${{ matrix.python }} / golang | ||
| runs-on: ${{ matrix.os }} | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| os: | ||
| - ubuntu-latest | ||
| - windows-latest | ||
| python: | ||
| - "3.7" | ||
| - "3.8" | ||
| - "3.9" | ||
| steps: | ||
| - uses: actions/checkout@v3 | ||
| - uses: actions/setup-python@v4 | ||
| with: | ||
| python-version: ${{ matrix.python }} | ||
| - uses: actions/setup-go@v3 | ||
| with: | ||
| go-version: '^1.16' | ||
| - run: make init | ||
| - run: pytest -vv tests/integration/workflows/go_modules | ||
|
|
||
| java-maven-integration: | ||
| name: ${{ matrix.os }} / ${{ matrix.python }} / java maven | ||
| runs-on: ${{ matrix.os }} | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| os: | ||
| - ubuntu-latest | ||
| - windows-latest | ||
| python: | ||
| - "3.9" | ||
| - "3.8" | ||
| - "3.7" | ||
| steps: | ||
| - uses: actions/checkout@v3 | ||
| - uses: actions/setup-python@v4 | ||
| with: | ||
| python-version: ${{ matrix.python }} | ||
| - uses: actions/setup-java@v3 | ||
| with: | ||
| distribution: 'corretto' | ||
| java-version: '11' | ||
| - run: make init | ||
| - run: pytest -vv tests/integration/workflows/java_maven | ||
|
|
||
| java-gradle-integration: | ||
| name: ${{ matrix.os }} / ${{ matrix.python }} / java gradle | ||
| runs-on: ${{ matrix.os }} | ||
| env: | ||
| GRADLE_OPTS: -Dorg.gradle.daemon=false | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| os: | ||
| - ubuntu-latest | ||
| - windows-latest | ||
| python: | ||
| - "3.9" | ||
| - "3.8" | ||
| - "3.7" | ||
| steps: | ||
| - uses: actions/checkout@v3 | ||
| - uses: actions/setup-python@v4 | ||
| with: | ||
| python-version: ${{ matrix.python }} | ||
| - uses: actions/setup-java@v3 | ||
| with: | ||
| distribution: 'zulu' | ||
| java-version: '11' | ||
| - run: make init | ||
| - run: pytest -vv tests/integration/workflows/java_gradle | ||
|
|
||
| custom-make-integration: | ||
| name: ${{ matrix.os }} / ${{ matrix.python }} / custom make | ||
| runs-on: ${{ matrix.os }} | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| os: | ||
| - ubuntu-latest | ||
| - windows-latest | ||
| python: | ||
| - "3.9" | ||
| - "3.8" | ||
| - "3.7" | ||
| steps: | ||
| - uses: actions/checkout@v3 | ||
| - uses: actions/setup-python@v4 | ||
| with: | ||
| python-version: ${{ matrix.python }} | ||
| - run: make init | ||
| - run: pytest -vv tests/integration/workflows/custom_make | ||
|
|
||
| python-integration: | ||
| name: ${{ matrix.os }} / ${{ matrix.python }} / python | ||
| runs-on: ${{ matrix.os }} | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| os: | ||
| - ubuntu-latest | ||
| - windows-latest | ||
| python: | ||
| - "3.9" | ||
| - "3.8" | ||
| - "3.7" | ||
| steps: | ||
| - uses: actions/checkout@v3 | ||
| - uses: actions/setup-python@v4 | ||
| with: | ||
| python-version: ${{ matrix.python }} | ||
| - run: make init | ||
| - run: pytest -vv tests/integration/workflows/python_pip | ||
|
|
||
| ruby-integration: | ||
| name: ${{ matrix.os }} / ${{ matrix.python }} / ruby-${{ matrix.ruby }} | ||
| runs-on: ${{ matrix.os }} | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| os: | ||
| - ubuntu-latest | ||
| - windows-latest | ||
| python: | ||
| - "3.9" | ||
| - "3.8" | ||
| - "3.7" | ||
| ruby: | ||
| - "3.1" | ||
| - "2.7" | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v3 | ||
| - uses: actions/setup-python@v4 | ||
| with: | ||
| python-version: ${{ matrix.python }} | ||
| - uses: ruby/setup-ruby@v1 | ||
| with: | ||
| ruby-version: ${{ matrix.ruby }} | ||
| - run: make init | ||
| - run: pytest -vv tests/integration/workflows/ruby_bundler | ||
|
|
||
| dotnet-integration: | ||
| name: ${{ matrix.os }} / ${{ matrix.python }} / dotnet | ||
| runs-on: ${{ matrix.os }} | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| os: | ||
| - ubuntu-latest | ||
| - windows-latest | ||
| python: | ||
| - "3.9" | ||
| - "3.8" | ||
| - "3.7" | ||
| steps: | ||
| - uses: actions/checkout@v3 | ||
| - uses: actions/setup-python@v4 | ||
| with: | ||
| python-version: ${{ matrix.python }} | ||
| - run: make init | ||
| - run: pytest -vv tests/integration/workflows/dotnet_clipackage | ||
Empty file.
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 |
|---|---|---|
|
|
@@ -14,4 +14,4 @@ exclude = ''' | |
| | pip-wheel-metadata | ||
| )/ | ||
| ) | ||
| ''' | ||
| ''' | ||
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.
nit: shall we add "3.10" as well?
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.
I think this might result in exceeding the limit of jobs/pr... Might need a separate job that does a smoke test with all versions.