Skip to content

Commit

Permalink
refactor: Spread range of valid pydantic versions and clean up CI/CD
Browse files Browse the repository at this point in the history
- Moved from a specific pydantic version to support both version 1 and version 2
- Removed unnecessary Python versions from CI/CD configuration
  • Loading branch information
ntindle committed Nov 9, 2023
1 parent dec14c7 commit 4f6b966
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
11 changes: 10 additions & 1 deletion .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,22 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.11, 3.12]
python-version: [3.12]
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
- name: Install dependencies
run: |
poetry install
- name: Build
run: |
poetry build
- name: Build and publish
run: |
poetry publish --username ${{ secrets.PYPI_USERNAME }} --password ${{ secrets.PYPI_PASSWORD }}
2 changes: 1 addition & 1 deletion 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 @@ -21,7 +21,7 @@ classifiers = [
[tool.poetry.dependencies]
python = "^3.11"
pytest = "^7.4.3"
pydantic = "^2.4.2"
pydantic = "^1 || ^2"
black = "^23.11.0"


Expand Down

0 comments on commit 4f6b966

Please sign in to comment.