Skip to content

chore(deps): bump openai from 1.54.1 to 1.57.0 in /src #33

chore(deps): bump openai from 1.54.1 to 1.57.0 in /src

chore(deps): bump openai from 1.54.1 to 1.57.0 in /src #33

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pylint
- name: Get changed Python files
id: changed-files
uses: tj-actions/changed-files@v44
with:
files: |
**/*.py
- name: Run pylint on changed Python files
if: steps.changed-files.outputs.all_changed_files != ''
run: |
for file in ${{ steps.changed-files.outputs.all_changed_files }}; do
pylint "$file" | tee pylint_output.txt
score=$(grep -Po 'rated at \K[\d.]+' pylint_output.txt)
echo "Pylint score for $file: $score"
if (( $(echo "$score < 7" | bc -l) )); then
echo "Pylint score is below 7 for $file, failing the job."
exit 1
fi
done