From ef3fe253fb7b468cd3f753274a6fac069c1e591c Mon Sep 17 00:00:00 2001 From: Bharath Vignesh J K <52282402+RazCrimson@users.noreply.github.com> Date: Tue, 9 May 2023 01:14:51 +0530 Subject: [PATCH] add: workflow (test) - windows tests --- .github/workflows/test.yml | 31 +++++++++++++++++++++++++++++-- 1 file 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