diff --git a/.github/workflows/pylint.yml b/.github/workflows/pylint.yml index 383e65c..cfdc1e6 100644 --- a/.github/workflows/pylint.yml +++ b/.github/workflows/pylint.yml @@ -14,10 +14,21 @@ jobs: uses: actions/setup-python@v3 with: python-version: ${{ matrix.python-version }} - - name: Install dependencies + + - name: Set up Python virtual environment + run: | + python -m venv venv + source venv/bin/activate + + - name: Upgrade pip and install dependencies run: | python -m pip install --upgrade pip + pip install -r requirements.txt pip install pylint + + - name: Set PYTHONPATH + run: echo "PYTHONPATH=$(pwd)" >> $GITHUB_ENV + - name: Analysing the code with pylint run: | - pylint $(git ls-files '*.py') + pylint $(git ls-files '*.py') \ No newline at end of file