diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bf97250..34b581d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,13 +21,19 @@ jobs: - name: Checkout code uses: actions/checkout@v4 - - name: Install pylint / pyflakes - run: | - sudo apt-get update - sudo apt-get install --yes pylint pyflakes3 + - name: Setup python + uses: actions/setup-python@v5 + with: + python-version: '3.11' + + - name: Install dependencies + run: pip install -r requirements.txt + + - name: Install test dependencies + run: pip install -r requirements-test.txt - name: Install pve_exporter - run: sudo pip install -e . + run: pip install . - name: Run pylint run: pylint pve_exporter diff --git a/requirements-test.txt b/requirements-test.txt index 7988217..4b7a3f9 100644 --- a/requirements-test.txt +++ b/requirements-test.txt @@ -1,2 +1,2 @@ -pylint +pylint==2.12.2 pyflakes