diff options
Diffstat (limited to '.github/workflows/test.yml')
-rw-r--r-- | .github/workflows/test.yml | 31 |
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 |