-
Notifications
You must be signed in to change notification settings - Fork 9
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
Gh test #46
Merged
Merged
Gh test #46
Changes from 28 commits
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
7a0a7bb
wip: github actions to run tests
nilesh05apr 78b473a
update: update test action
nilesh05apr e0cdd79
update: update test action
nilesh05apr 4634469
test: testing on single os and single python version
nilesh05apr 61a9362
test: test on single os and single python version
nilesh05apr 0028544
update: test scripts
nilesh05apr 05e9297
update: test for multiple python versions
nilesh05apr 8467515
update: test on windows
nilesh05apr 545f764
update: repo udate
nilesh05apr dedefc5
add:run unit test on github action
nilesh05apr ac7e7b0
add: caching dependencies in gh-workflow
nilesh05apr ed0e34b
add: update gh-actions to run bash script
nilesh05apr 653d6af
add: update gh-actions to run bash script
nilesh05apr b9ca04c
add: update gh-actions to run bash script
nilesh05apr a1ecbc2
add: updated gh-actions
nilesh05apr dfe6463
add: install mypy in gh-actions
nilesh05apr 7ec6e9b
add: install missing stub packages
nilesh05apr bbf397b
update: pipenv for caching dependencies
nilesh05apr 020bfa2
remove check
nilesh05apr 04317f8
update: run bash script
nilesh05apr eebe239
update: test.yml
nilesh05apr 730372f
update: test.yml
nilesh05apr ce44e37
typo fix
nilesh05apr d7c49e0
minor fix
nilesh05apr bfe0fe6
update: test.yml
nilesh05apr 44cef3a
update: test.yml
nilesh05apr e9f1a3f
update: check gh actions for cache
nilesh05apr 1803016
update: removed manual test script, removed windows os, updated cache…
nilesh05apr 02c2708
test: cache
nilesh05apr 9d50494
revert to previous state
nilesh05apr de303f9
update: test.yml
nilesh05apr cd48c76
update: test.yml ,fixed typo
nilesh05apr 745df0e
update: test.yml
nilesh05apr 15ceae7
add: gh-action for unit tests
nilesh05apr 4b63d42
Merge branch 'main' into gh-test
sudiptob2 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,55 @@ | ||||||
name: Test | ||||||
on: | ||||||
- pull_request | ||||||
- push | ||||||
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.
Suggested change
|
||||||
|
||||||
sudiptob2 marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||
jobs: | ||||||
test: | ||||||
runs-on: ${{ matrix.os }} | ||||||
strategy: | ||||||
matrix: | ||||||
os: [ubuntu-latest] | ||||||
python-version: ['3.8', '3.9', '3.10'] | ||||||
|
||||||
steps: | ||||||
- uses: actions/checkout@v2 | ||||||
- name: Set up Python ${{ matrix.python-version }} | ||||||
uses: actions/setup-python@v2 | ||||||
with: | ||||||
python-version: ${{ matrix.python-version }} | ||||||
|
||||||
# Install pipenv | ||||||
- name: Install pipenv | ||||||
run: python3 -m pip install --upgrade pipenv | ||||||
|
||||||
# create .venv folder | ||||||
- name: create .venv folder | ||||||
run: mkdir -p .venv | ||||||
|
||||||
# caching dependencies | ||||||
- name: Caching Dependencies | ||||||
uses: actions/cache@v2 | ||||||
id: cache-dependencies | ||||||
with: | ||||||
path: ./.venv | ||||||
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.
Suggested change
|
||||||
key: ${{matrix.os}}-${{ matrix.python-version }}-pipenv-${{ hashFiles('**/Pipfile.lock') }} | ||||||
restore-keys: | | ||||||
${{ matrix.os }}-pipenv | ||||||
|
||||||
# install dependencies | ||||||
- name: Install dependencies | ||||||
sudiptob2 marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||
if: steps.cache-dependencies.outputs.cache-hit != 'true' | ||||||
run: pipenv install --dev --verbose | ||||||
|
||||||
# Run tests | ||||||
# - name: Test | ||||||
# run: | | ||||||
# python3 --version | ||||||
# python3 -m pip install pytest pytest-mock flake8 mypy requests | ||||||
# python3 -m pytest | ||||||
|
||||||
# Run bash script | ||||||
- name: run Bash script | ||||||
run: pipenv run bash ./.github/check.sh | ||||||
|
||||||
|
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.