Skip to content

Commit

Permalink
Test with python 3.11 (#98)
Browse files Browse the repository at this point in the history
* Test with python 3.11
* Remove kedro-viz for e2e tests
* Update codeql actions and changelog
  • Loading branch information
em-pe authored Apr 25, 2024
1 parent 2d3d69e commit 76b9db2
Show file tree
Hide file tree
Showing 5 changed files with 92 additions and 38 deletions.
18 changes: 13 additions & 5 deletions .github/workflows/tests_and_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,26 @@ on:
- develop
paths-ignore:
- "docs/**"
- CHANGELOG.md
- README.md
- CONTRIBUTING.md
pull_request:
branches:
- master
- develop
paths-ignore:
- "docs/**"

- CHANGELOG.md
- README.md
- CONTRIBUTING.md
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
unit_tests:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ '3.8', '3.9', '3.10']
python-version: [ '3.8', '3.9', '3.10', '3.11']

steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -87,15 +94,15 @@ jobs:

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
uses: github/codeql-action/init@v3
with:
languages: python

- name: Autobuild
uses: github/codeql-action/autobuild@v2
uses: github/codeql-action/autobuild@v3

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
uses: github/codeql-action/analyze@v3

### PROJECT SPECIFIC CONFIGURATION HERE

Expand Down Expand Up @@ -136,6 +143,7 @@ jobs:
echo -e "kedro-docker<0.5.0\n" >> src/requirements.txt
echo -e "openpyxl\n" >> src/requirements.txt # temp fix for kedro-datasets issues with optional packages
sed -i '/kedro-telemetry/d' src/requirements.txt
sed -i '/kedro-viz/d' src/requirements.txt # starter version requirements make tests fail
echo $(cat src/requirements.txt)
pip install -r src/requirements.txt
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

## [Unreleased]

- Added support for python 3.11 by [@em-pe](https://github.com/em-pe)
- Added support for pydantic v2 and bumped minimal required pydantic version to `2.6.4` by [@froessler](https://github.com/fdroessler)
- Added support for `metadata` argument in Azure ML datasets by [@tomasvanpottelbergh](https://github.com/tomasvanpottelbergh)
- Fixed azureml-fsspec version update changed return type of `_infer_storage_options` and pinned fsspec version to patch only [@froessler](https://github.com/fdroessler)
Expand Down
106 changes: 75 additions & 31 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ exclude_lines = [
known_third_party = ["azure", "tabulate", "pydantic","semver","setuptools"]

[tool.poetry.dependencies]
python = ">=3.8,<3.11"
python = ">=3.8,<3.12"
kedro = ">=0.18.13,<0.19"
cloudpickle = "^2.1.0"
adlfs = ">=2022.2.0"
Expand Down
3 changes: 2 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
[tox]
envlist = py38, py39, py310
envlist = py38, py39, py310, py311, py312

[gh-actions]
python =
3.8: py38
3.9: py39
3.10: py310
3.11: py311

[testenv]
whitelist_externals =
Expand Down

0 comments on commit 76b9db2

Please sign in to comment.