trying to fix flake8
This commit is contained in:
14
.github/workflows/lint.yml
vendored
14
.github/workflows/lint.yml
vendored
@@ -17,24 +17,16 @@ jobs:
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v2
|
||||
uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: '3.12' # Specify the exact Python version
|
||||
|
||||
- name: Cache pip dependencies
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: ~/.cache/pip
|
||||
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-pip-
|
||||
|
||||
- name: Install dependencies
|
||||
- name: Install Flake8
|
||||
run: |
|
||||
python -m venv venv # Create a virtual environment in the project root
|
||||
source venv/bin/activate
|
||||
pip install --upgrade pip
|
||||
pip install -r requirements.txt # Install dependencies from requirements.txt
|
||||
pip install flake8==7.1.1 # Install specific flake8 version
|
||||
|
||||
- name: Run Flake8
|
||||
run: |
|
||||
|
||||
Reference in New Issue
Block a user