Skip to content

Commit

Permalink
E2E Batch Template: Adding Python 3.12 to the workflows (#40)
Browse files Browse the repository at this point in the history
* added 3.12

* win tests fix

---------

Co-authored-by: Andrei Vishniakov <[email protected]>
  • Loading branch information
bcdurak and avishniakov authored Sep 3, 2024
1 parent 04ab578 commit a832150
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
matrix:
stack-name: [local]
os: [windows-latest, ubuntu-latest, macos-latest]
python-version: ["3.8", "3.9", "3.10", "3.11"]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
env:
ZENML_DEBUG: true
ZENML_ANALYTICS_OPT_IN: false
Expand All @@ -57,5 +57,5 @@ jobs:
with:
stack-name: ${{ matrix.stack-name }}
python-version: ${{ matrix.python-version }}
ref-zenml: ${{ inputs.ref-zenml || 'develop' }}
ref-zenml: ${{ inputs.ref-zenml || 'feature/PRD-566-dependency-cleanup' }}
ref-template: ${{ inputs.ref-template || github.ref }}
9 changes: 8 additions & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
# permissions and limitations under the License.


import contextlib
import os
import sys
import shutil
from typing import Generator

Expand Down Expand Up @@ -99,6 +101,11 @@ def clean_zenml_client(
GlobalConfiguration._reset_instance(original_config)
Client._reset_instance(original_client)

# remove all traces, and change working directory back to base path
# remove all traces, and change working directory back to base path
os.chdir(orig_cwd)
shutil.rmtree(str(tmp_path))
if sys.platform == "win32":
with contextlib.suppress(Exception):
shutil.rmtree(str(tmp_path))
else:
shutil.rmtree(str(tmp_path))

0 comments on commit a832150

Please sign in to comment.