Skip to content

Commit 0e70840

Browse files
committed
Remove commands to reduce test running time
Signed-off-by: Jaekwon Bang <[email protected]>
1 parent db7d4a5 commit 0e70840

File tree

2 files changed

+8
-23
lines changed

2 files changed

+8
-23
lines changed

.github/workflows/pull-request.yml

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -60,29 +60,21 @@ jobs:
6060
- name: Install dependencies
6161
run: |
6262
python -m pip install --upgrade pip
63-
pip install pyinstaller
64-
pip install tox
65-
pip install tox-wheel
6663
pip install fosslight_dependency
6764
sudo npm install -g license-checker
6865
- name: Install Pod
6966
working-directory: ./tests/test_cocoapods/cocoapods-tips/JWSCocoapodsTips
7067
run: pod install --clean-install
71-
- name: Make executable file
72-
run: pyinstaller --onefile cli.py -n cli --additional-hooks-dir=hooks --add-binary "src/fosslight_dependency/third_party/askalono/askalono_macos:third_party/askalono"
7368
- name: Run Test
74-
working-directory: ./dist
7569
run: |
76-
./cli -p ../tests/test_pypi -o ../tests/result/pip
77-
./cli -p ../tests/test_npm1 -o ../tests/result/npm1
78-
./cli -p ../tests/test_npm2 -o ../tests/result/npm2 -m npm
79-
./cli -p ../tests/test_maven1/lombok.maven -o ../tests/result/maven1
80-
./cli -p ../tests/test_maven2 -o ../tests/result/maven2
81-
./cli -p ../tests/test_gradle/jib -o ../tests/result/gradle
82-
./cli -p ../tests/test_pub -o ../tests/result/pub
83-
./cli -p ../tests/test_cocoapods/cocoapods-tips/JWSCocoapodsTips -o ../tests/result/Cocoapods
84-
- name: Run Flake8
85-
run: tox -e run_macos
70+
fosslight_dependency -p tests/test_pypi -o tests/result/pip
71+
fosslight_dependency -p tests/test_npm1 -o tests/result/npm1
72+
fosslight_dependency -p tests/test_npm2 -o tests/result/npm2 -m npm
73+
fosslight_dependency -p tests/test_maven1/lombok.maven -o tests/result/maven1
74+
fosslight_dependency -p tests/test_maven2 -o tests/result/maven2
75+
fosslight_dependency -p tests/test_gradle/jib -o tests/result/gradle
76+
fosslight_dependency -p tests/test_pub -o tests/result/pub
77+
fosslight_dependency -p tests/test_cocoapods/cocoapods-tips/JWSCocoapodsTips -o tests/result/Cocoapods
8678
reuse:
8779
runs-on: ubuntu-latest
8880
steps:

tox.ini

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,3 @@ commands =
6868
{toxinidir}\dist\cli.exe -p tests\test_gradle\jib -o tests\result\gradle -m gradle
6969
# Test for Pub
7070
{toxinidir}\dist\cli.exe -p tests\test_pub -o tests\result\pub
71-
72-
[testenv:run_macos]
73-
deps =
74-
-r{toxinidir}/requirements-dev.txt
75-
commands =
76-
# Test for PEP8
77-
pytest -v --flake8

0 commit comments

Comments
 (0)