add: workflow (test) - windows tests

This commit is contained in:
Bharath Vignesh J K 2023-05-09 01:14:51 +05:30
parent 2ac6f4d4bf
commit ef3fe253fb
1 changed files with 29 additions and 2 deletions

View File

@ -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/'
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