Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
SermetPekin committed Dec 4, 2024
1 parent 6da74ef commit f0be7e9
Showing 1 changed file with 19 additions and 20 deletions.
39 changes: 19 additions & 20 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,34 +13,33 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.10" , "3.12"] #["3.9", "3.10", "3.11" , "3.12" ]
env:
OPENAI_API_KEY : ${{ secrets.OPENAI_API_KEY }}
python-version: ["3.10", "3.12"]

steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
- name: Checkout code
uses: actions/checkout@v4

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

- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install flake8 pytest evdspy
# python -m pip install poetry
python -m pip install uv graphviz
# poetry install
uv venv
source .venv/bin/activate
uv pip install .
# if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
# Install all dependencies from pyproject.toml or requirements.txt
if [ -f requirements.txt ]; then
pip install -r requirements.txt
elif [ -f pyproject.toml ]; then
pip install .
fi
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
# flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
# flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
pip install flake8
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with pytest
run: |
pytest -v
pip install pytest
pytest -v

0 comments on commit f0be7e9

Please sign in to comment.