From acb439fd073a13134b0c6d1b8d66de5fbc32775e Mon Sep 17 00:00:00 2001 From: Tomi Valkeinen Date: Fri, 23 Aug 2024 09:07:35 +0300 Subject: [PATCH] Update ci.yml --- .github/workflows/{pylint.yml => ci.yml} | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) rename .github/workflows/{pylint.yml => ci.yml} (85%) diff --git a/.github/workflows/pylint.yml b/.github/workflows/ci.yml similarity index 85% rename from .github/workflows/pylint.yml rename to .github/workflows/ci.yml index 1ff0e2b..9a23a8b 100644 --- a/.github/workflows/pylint.yml +++ b/.github/workflows/ci.yml @@ -1,4 +1,4 @@ -name: Pylint +name: CI on: [push] @@ -8,20 +8,29 @@ jobs: strategy: matrix: python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] + steps: - uses: actions/checkout@v4 + - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} + cache: "pip" + - name: Install dependencies run: | python -m pip install --upgrade pip pip install -e . pip install pylint numpy PyQt6 ipython + - name: Test with unittest run: | python3 -m unittest -v tests/test_install.py + + - name: Analysing the code with Pyright + uses: jakebailey/pyright-action@v2 + - name: Analysing the code with pylint run: | pylint $(git ls-files 'v4l2/*.py' 'tests/*.py')