Skip to content

Commit

Permalink
gitaction adding install reqs
Browse files Browse the repository at this point in the history
  • Loading branch information
CyberRoute committed Sep 23, 2024
1 parent b5ffe9d commit a65c11c
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions .github/workflows/pylint.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,33 @@
name: Pylint

on: [push]

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10"]
python-version: ["3.8", "3.9", "3.10"]
steps:
- uses: actions/checkout@v4

# Set up the correct Python version for each matrix version
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}

# Install pip and pipenv
- name: Install dependencies
- name: Install pip and pipenv
run: |
python -m pip install --upgrade pip
pip install pipenv
# Install project dependencies using pipenv
- name: Install dependencies from Pipfile
# Install dependencies using pipenv and explicitly specify the Python version
- name: Install dependencies with pipenv
run: |
pipenv install --dev
- name: Analysing the code with pylint
pipenv install --dev --python $(which python)
# Run pylint within the pipenv environment
- name: Analyse code with pylint
run: |
pylint $(find . -type f -name "*.py" ! -path "./ui/*")
pipenv run pylint $(find . -type f -name "*.py" ! -path "./ui/*")

0 comments on commit a65c11c

Please sign in to comment.