From 0a54c9b26aaea0c91f0f3f28be43011ba64b28aa 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} | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) rename .github/workflows/{pylint.yml => ci.yml} (95%) diff --git a/.github/workflows/pylint.yml b/.github/workflows/ci.yml similarity index 95% rename from .github/workflows/pylint.yml rename to .github/workflows/ci.yml index 1ff0e2b..00458b8 100644 --- a/.github/workflows/pylint.yml +++ b/.github/workflows/ci.yml @@ -1,4 +1,4 @@ -name: Pylint +name: CI on: [push] @@ -8,20 +8,26 @@ 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 pylint run: | pylint $(git ls-files 'v4l2/*.py' 'tests/*.py')