summaryrefslogtreecommitdiffstats
path: root/.github/workflows/test.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/test.yml')
-rw-r--r--.github/workflows/test.yml33
1 files changed, 31 insertions, 2 deletions
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 219a4731..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:
@@ -34,6 +34,8 @@ jobs:
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics --exclude=.git,./docs,./glances/outputs/static
+ # - name: Lint with Ruff
+ # uses: chartboost/ruff-action@v1
- name: Static type check
run: |
@@ -54,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