Skip to content

Commit 0cdc2ae

Browse files
committed
Add github action for windows & Add tox for windows
Signed-off-by: Jaekwon Bang <[email protected]>
1 parent 5e2f69b commit 0cdc2ae

File tree

2 files changed

+31
-2
lines changed

2 files changed

+31
-2
lines changed

.github/workflows/pull-request.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
branches: [ main ]
88

99
jobs:
10-
build:
10+
build_ubuntu:
1111
runs-on: ubuntu-latest
1212
strategy:
1313
matrix:
@@ -27,6 +27,18 @@ jobs:
2727
- name: Run Tox
2828
run: |
2929
tox -e run_ubuntu
30+
build_windows:
31+
runs-on: windows-latest
32+
steps:
33+
- uses: actions/checkout@v2
34+
- name: Install dependencies
35+
run: |
36+
python -m pip install --upgrade pip
37+
pip install tox
38+
pip install tox-wheel
39+
- name: Run Tox
40+
run: |
41+
tox -e run_windows
3042
reuse:
3143
runs-on: ubuntu-latest
3244
steps:

tox.ini

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ toxworkdir = {toxinidir}/tests/
99
wheel = true
1010
install_command = pip install {opts} {packages}
1111
basepython= python3.6
12-
whitelist_externals = npm
1312
setenv =
1413
PYTHONPATH=.
1514

@@ -52,3 +51,21 @@ commands =
5251
fosslight_dependency -p tests/test_gradle/jib -o tests/result/gradle
5352
# Test for Pub
5453
fosslight_dependency -p tests/test_pub -o tests/result/pub
54+
55+
[testenv:run_windows]
56+
deps =
57+
-r{toxinidir}\requirements-dev.txt
58+
59+
commands =
60+
# Test for PEP8
61+
pytest -v --flake8
62+
# Test for making excutable file
63+
pyinstaller --onefile cli.py -n cli --additional-hooks-dir=hooks --add-binary "src\fosslight_dependency\third_party\askalono\askalono.exe;third_party\askalono"
64+
# Test for Maven (without optional command)
65+
fosslight_dependency.exe -p tests\test_maven1\lombok.maven -o tests\result\maven1
66+
# Test for Maven (with optional command)
67+
fosslight_dependency.exe -p tests\test_maven2 -o tests\result\maven2 -m maven
68+
# Test for Gradle
69+
fosslight_dependency.exe -p tests\test_gradle\jib -o tests\result\gradle -m gradle
70+
# Test for Pub
71+
fosslight_dependency.exe -p tests\test_pub -o tests\result\pub

0 commit comments

Comments
 (0)