Skip to content

Commit

Permalink
Add compatibility with both pydantic version for CD (#68)
Browse files Browse the repository at this point in the history
### Changes:
 * Added pyproject.toml backup and recovery on CD.
 * Fixed pydantic version on pyproject.toml.
  • Loading branch information
shaharbar1 authored Oct 22, 2024
1 parent 8594158 commit bd54568
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/continuous_delivery.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,13 @@ jobs:
run: |
curl -sSL https://install.python-poetry.org | python3 -
export PATH="$HOME/.poetry/bin:$PATH"
- name: Backup pyproject.toml
run: cp pyproject.toml pyproject.toml.bak
- name: Install project dependencies with Poetry
run: |
poetry add pydantic@${{ matrix.pydantic-version }}
poetry install
mv pyproject.toml.bak pyproject.toml
- name: Style check
run: |
# run pre-commit hooks
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "pybandits"
version = "1.0.1"
version = "1.0.2"
description = "Python Multi-Armed Bandit Library"
authors = [
"Dario d'Andrea <dariod@playtika.com>",
Expand All @@ -16,7 +16,7 @@ readme = "README.md"
python = ">=3.8.1,<3.12"
loguru = "^0.6"
numpy = "^1.23"
pydantic = "1.10.0"
pydantic = ">=1.10"
scipy = "^1.9"
pymc = "^5.3"
scikit-learn = "^1.1"
Expand Down

0 comments on commit bd54568

Please sign in to comment.