Skip to content
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 35 commits into from
Oct 13, 2022
Merged
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 Oct 6, 2022
78b473a
update: update test action
nilesh05apr Oct 6, 2022
e0cdd79
update: update test action
nilesh05apr Oct 6, 2022
4634469
test: testing on single os and single python version
nilesh05apr Oct 6, 2022
61a9362
test: test on single os and single python version
nilesh05apr Oct 6, 2022
0028544
update: test scripts
nilesh05apr Oct 6, 2022
05e9297
update: test for multiple python versions
nilesh05apr Oct 6, 2022
8467515
update: test on windows
nilesh05apr Oct 6, 2022
545f764
update: repo udate
nilesh05apr Oct 6, 2022
dedefc5
add:run unit test on github action
nilesh05apr Oct 6, 2022
ac7e7b0
add: caching dependencies in gh-workflow
nilesh05apr Oct 11, 2022
ed0e34b
add: update gh-actions to run bash script
nilesh05apr Oct 11, 2022
653d6af
add: update gh-actions to run bash script
nilesh05apr Oct 11, 2022
b9ca04c
add: update gh-actions to run bash script
nilesh05apr Oct 11, 2022
a1ecbc2
add: updated gh-actions
nilesh05apr Oct 11, 2022
dfe6463
add: install mypy in gh-actions
nilesh05apr Oct 11, 2022
7ec6e9b
add: install missing stub packages
nilesh05apr Oct 11, 2022
bbf397b
update: pipenv for caching dependencies
nilesh05apr Oct 11, 2022
020bfa2
remove check
nilesh05apr Oct 11, 2022
04317f8
update: run bash script
nilesh05apr Oct 11, 2022
eebe239
update: test.yml
nilesh05apr Oct 11, 2022
730372f
update: test.yml
nilesh05apr Oct 11, 2022
ce44e37
typo fix
nilesh05apr Oct 11, 2022
d7c49e0
minor fix
nilesh05apr Oct 11, 2022
bfe0fe6
update: test.yml
nilesh05apr Oct 11, 2022
44cef3a
update: test.yml
nilesh05apr Oct 11, 2022
e9f1a3f
update: check gh actions for cache
nilesh05apr Oct 12, 2022
1803016
update: removed manual test script, removed windows os, updated cache…
nilesh05apr Oct 12, 2022
02c2708
test: cache
nilesh05apr Oct 12, 2022
9d50494
revert to previous state
nilesh05apr Oct 12, 2022
de303f9
update: test.yml
nilesh05apr Oct 13, 2022
cd48c76
update: test.yml ,fixed typo
nilesh05apr Oct 13, 2022
745df0e
update: test.yml
nilesh05apr Oct 13, 2022
15ceae7
add: gh-action for unit tests
nilesh05apr Oct 13, 2022
4b63d42
Merge branch 'main' into gh-test
sudiptob2 Oct 13, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 55 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: Test
on:
- pull_request
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- pull_request

- push
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- push


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
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
path: ./.venv
path: .venv

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