summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBharath Vignesh J K <52282402+RazCrimson@users.noreply.github.com>2023-05-09 01:14:51 +0530
committerBharath Vignesh J K <52282402+RazCrimson@users.noreply.github.com>2023-05-09 02:44:48 +0530
commitef3fe253fb7b468cd3f753274a6fac069c1e591c (patch)
tree2b450408e67000960f34438866ad33a0aafc7fa5
parent2ac6f4d4bf1af1c8506bd36f91bff04141f673da (diff)
add: workflow (test) - windows tests
-rw-r--r--.github/workflows/test.yml31
1 files changed, 29 insertions, 2 deletions
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 4109588c..e11d4d1f 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -5,7 +5,7 @@ name: test
on: [push]
jobs:
- test:
+ test-linux:
runs-on: ubuntu-latest
strategy:
@@ -56,4 +56,31 @@ jobs:
uses: jpetrucciani/bandit-check@master
with:
#path: '-r --exit-zero --skip B104 ./glances/'
- path: '-r --exit-zero --skip B104 ./glances/' \ No newline at end of file
+ path: '-r --exit-zero --skip B104 ./glances/'
+
+
+ test-windows:
+
+ runs-on: windows-latest
+ strategy:
+ matrix:
+ python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
+
+ steps:
+
+ - uses: actions/checkout@v3
+
+ - name: Set up Python ${{ matrix.python-version }}
+ uses: actions/setup-python@v4
+ with:
+ python-version: ${{ matrix.python-version }}
+
+ - name: Install dependencies
+ run: |
+ python -m pip install --upgrade pip
+ if (Test-Path -PathType Leaf "requirements.txt") { python -m pip install -r requirements.txt }
+ python setup.py install
+
+ - name: Unitary tests
+ run: |
+ python ./unitest.py