Skip to content

Commit 929e1b9

Browse files
committed
fix: update CI to install pydantic version based on Python version
1 parent d0dca3e commit 929e1b9

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/test.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,15 @@ jobs:
3232
- name: Install dependencies
3333
run: |
3434
python -m pip install --upgrade pip
35-
pip install -r requirements.txt
35+
# Install base dependencies
36+
pip install atlassian-python-api certifi charset-normalizer Deprecated idna oauthlib requests requests-oauthlib six urllib3 wrapt python-dotenv click
37+
# Install pydantic based on Python version
38+
if python -c "import sys; exit(0 if sys.version_info >= (3, 9) else 1)"; then
39+
pip install "pydantic>=2.0.0"
40+
else
41+
pip install "pydantic<2.0.0"
42+
fi
43+
# Install dev dependencies
3644
pip install pytest pytest-cov flake8 black mypy
3745
3846
- name: Lint with flake8

0 commit comments

Comments
 (0)