-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add unittest for common/ssh_client package (#364)
* add unittest for ssh_client * unittest for local_client * add unittest for remote_client * add unittest for docker_client and kubernetes_cilent * update unittest for remote_client * add unittest workflow * update unittest for test_remote_client * update unittest for workflow
- Loading branch information
1 parent
58c37e7
commit 080682f
Showing
7 changed files
with
1,802 additions
and
5 deletions.
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,30 @@ | ||
name: Test Ssh Client | ||
|
||
on: | ||
push: | ||
branches: "dev*" | ||
pull_request: | ||
branches: "dev*" | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 # Fetch all history for proper version detection | ||
|
||
- name: Set up Python 3.8 | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: 3.8 | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -r requirements3.txt | ||
- name: Run tests | ||
run: python -m unittest discover -s test/common/ssh_client -p 'test_*.py' |
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
Oops, something went wrong.