Skip to content

Commit

Permalink
Match python ver.
Browse files Browse the repository at this point in the history
  • Loading branch information
gharbat committed Dec 5, 2023
1 parent aeb89d4 commit b825cd6
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,19 @@ jobs:
steps:
- uses: actions/checkout@v2

- name: Set up Python
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.8

- name: Change to project directory
run: cd llm-server
python-version: 3.9

- name: Install dependencies
run: |
python -m pip install --upgrade pip
if [ -f llm-server/requirements.txt ]; then pip install -r llm-server/requirements.txt; fi
cd llm-server
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Lint with flake8
run: |
pip install flake8
flake8 llm-server/ --count --select=E9,F63,F7,F82 --show-source --statistics
flake8 llm-server/ --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics

0 comments on commit b825cd6

Please sign in to comment.