File tree Expand file tree Collapse file tree 2 files changed +31
-2
lines changed Expand file tree Collapse file tree 2 files changed +31
-2
lines changed Original file line number Diff line number Diff line change 7
7
branches : [ main ]
8
8
9
9
jobs :
10
- build :
10
+ build_ubuntu :
11
11
runs-on : ubuntu-latest
12
12
strategy :
13
13
matrix :
27
27
- name : Run Tox
28
28
run : |
29
29
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
30
42
reuse :
31
43
runs-on : ubuntu-latest
32
44
steps :
Original file line number Diff line number Diff line change @@ -9,7 +9,6 @@ toxworkdir = {toxinidir}/tests/
9
9
wheel = true
10
10
install_command = pip install {opts} {packages}
11
11
basepython = python3.6
12
- whitelist_externals = npm
13
12
setenv =
14
13
PYTHONPATH =.
15
14
@@ -52,3 +51,21 @@ commands =
52
51
fosslight_dependency -p tests/test_gradle/jib -o tests/result/gradle
53
52
# Test for Pub
54
53
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
You can’t perform that action at this time.
0 commit comments