Skip to content

Commit

Permalink
Add Python311 to setup
Browse files Browse the repository at this point in the history
Test Matrix for 3.8 to 3.11
Publish and Pre-release - 3.9 changed to 3.11

Signed-off-by: rxm7706 <[email protected]>
  • Loading branch information
rxm7706 authored and Galileo-Galilei committed Oct 21, 2023
1 parent 229623c commit 58e19d3
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/prepare-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.9]
python-version: [3.11]
env:
PYTHON_PACKAGE: kedro_mlflow
steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.9]
python-version: [3.11]
env:
PYTHON_PACKAGE: kedro_mlflow
steps:
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10"]
python-version: ["3.8", "3.9", "3.10", "3.11"]
os: [ubuntu-latest, macos-latest, windows-latest]
env:
OS: ${{ matrix.os }}
Expand All @@ -30,15 +30,15 @@ jobs:
python -m pip install --upgrade pip
pip install .[test,extras]
- name: Check code formatting with black
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.10' # linting should occur only once in the loop
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.11' # linting should occur only once in the loop
run: |
black . --check
- name: Check import order with isort
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.10' # linting should occur only once in the loop
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.11' # linting should occur only once in the loop
run: |
isort . --check-only
- name: Lint with flake8
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.10' # linting should occur only once in the loop
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.11' # linting should occur only once in the loop
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics --exclude kedro_mlflow/template/project/run.py
Expand All @@ -49,7 +49,7 @@ jobs:
pytest --cov=./ --cov-report=xml
- name: Upload coverage report to Codecov
uses: codecov/codecov-action@v1
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.10' # upload should occur only once in the loop
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.11' # upload should occur only once in the loop
with:
token: ${{ secrets.CODECOV_TOKEN }} # token is not mandatory but make access more stable
file: ./coverage.xml
Expand Down
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def _parse_requirements(path, encoding="utf-8"):
long_description=README,
long_description_content_type="text/markdown",
url="https://github.com/Galileo-Galilei/kedro-mlflow",
python_requires=">=3.8, <3.11",
python_requires=">=3.8, <3.12",
packages=find_packages(exclude=["docs*", "tests*"]),
setup_requires=["setuptools_scm"],
include_package_data=True,
Expand Down Expand Up @@ -76,6 +76,7 @@ def _parse_requirements(path, encoding="utf-8"):
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Framework :: Kedro",
"Environment :: Plugins",
"Intended Audience :: Developers",
Expand Down

0 comments on commit 58e19d3

Please sign in to comment.