Skip to content

Commit

Permalink
fix: 🐛 adjust min python version and CI configuration for pass
Browse files Browse the repository at this point in the history
Signed-off-by: Onuralp SEZER <[email protected]>
  • Loading branch information
onuralpszr committed Sep 19, 2023
1 parent a22f056 commit 7b1aa4a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,20 +23,26 @@ jobs:
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
pip install -e .

- name: Set up a virtual environment for Python ${{ matrix.python-version }}
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade virtualenv
virtualenv venv
source venv/bin/activate
python -m pip install --upgrade poetry
poetry install
- name: Lint with flake8
run: |
source venv/bin/activate
# 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
- name: Test
run: |
source venv/bin/activate
kfk
cd tests && python -m pytest
- name: Build
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ classifiers=[
Tracker = "https://github.com/systemcraftsman/strimzi-kafka-cli/issues"

[tool.poetry.dependencies]
python = ">=3.8,<3.12.0"
python = ">=3.7,<3.12.0"
click = "^8.1.7"
pyyaml = "^6.0.1"
wget = "^3.2"
Expand Down

0 comments on commit 7b1aa4a

Please sign in to comment.