-
Notifications
You must be signed in to change notification settings - Fork 596
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bugfixes, better test coverage (#28)
* add daily package testing workflow * add ci tests for scripts * fix cli argument * fix function argument * add export format selection * update to v0.2.5
- Loading branch information
Showing
6 changed files
with
93 additions
and
6 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
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,66 @@ | ||
name: Package Testing | ||
|
||
on: | ||
schedule: | ||
- cron: '0 0 * * *' # Runs at 00:00 UTC every day | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
operating-system: [ubuntu-latest, windows-latest, macos-latest] | ||
python-version: [3.6, 3.7, 3.8] | ||
mmdet-version : [2.8.0, 2.9.0] | ||
fail-fast: false | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Restore Ubuntu cache | ||
uses: actions/cache@v1 | ||
if: matrix.operating-system == 'ubuntu-latest' | ||
with: | ||
path: ~/.cache/pip | ||
key: ${{ matrix.os }}-${{ matrix.python-version }}-${{ hashFiles('**/setup.py')}} | ||
restore-keys: ${{ matrix.os }}-${{ matrix.python-version }}- | ||
- name: Restore MacOS cache | ||
uses: actions/cache@v1 | ||
if: matrix.operating-system == 'macos-latest' | ||
with: | ||
path: ~/Library/Caches/pip | ||
key: ${{ matrix.os }}-${{ matrix.python-version }}-${{ hashFiles('**/setup.py')}} | ||
restore-keys: ${{ matrix.os }}-${{ matrix.python-version }}- | ||
- name: Restore Windows cache | ||
uses: actions/cache@v1 | ||
if: matrix.operating-system == 'windows-latest' | ||
with: | ||
path: ~\AppData\Local\pip\Cache | ||
key: ${{ matrix.os }}-${{ matrix.python-version }}-${{ hashFiles('**/setup.py')}} | ||
restore-keys: ${{ matrix.os }}-${{ matrix.python-version }}- | ||
- name: Update pip | ||
run: python -m pip install --upgrade pip | ||
- name: Install latest SAHI package | ||
run: > | ||
pip install --upgrade --force-reinstall sahi | ||
- name: Install MMDetection | ||
run: > | ||
pip install mmcv-full==1.2.5 mmdet==${{ matrix.mmdet-version }} | ||
- name: Test with unittest | ||
run: | | ||
python -m unittest | ||
- name: Test SAHI scripts for mmdet < 2.9.0 | ||
if: matrix.mmdet-version == '2.8.0' | ||
run: | | ||
# predict_folder | ||
python scripts/predict_folder.py --image_dir tests/data/coco_utils/ --visual_output_dir outputs/ --model_path tests/data/models/mmdet_retinanet/retinanet_r50_fpn_2x_coco_20200131-fdb43119.pth --config_path tests/data/models/mmdet_retinanet/retinanet_r50_fpn_1x_coco.py | ||
- name: Test SAHI scripts for mmdet == 2.9.0 | ||
if: matrix.mmdet-version == '2.9.0' | ||
run: | | ||
# predict_folder | ||
python scripts/predict_folder.py --image_dir tests/data/coco_utils/ --visual_output_dir outputs/ --model_path tests/data/models/mmdet_retinanet/retinanet_r50_fpn_2x_coco_20200131-fdb43119.pth --config_path tests/data/models/mmdet_retinanet/retinanet_r50_fpn_1x_coco_v290.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
__version__ = "0.2.4" | ||
__version__ = "0.2.5" |
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
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
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