diff --git a/.github/workflows/cicd.yml b/.github/workflows/cicd.yml index 94ab5a4..c25c6c9 100644 --- a/.github/workflows/cicd.yml +++ b/.github/workflows/cicd.yml @@ -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 }} diff --git a/poetry.lock b/poetry.lock index 27804b9..cfde801 100644 --- a/poetry.lock +++ b/poetry.lock @@ -321,4 +321,4 @@ files = [ [metadata] lock-version = "2.0" python-versions = "^3.11" -content-hash = "ff9f00e87279c56ed4aaf701ec44126fb28834fdc602181616266484b95f5df1" +content-hash = "2fd145c43c06642845823608cfa24bd270e8cbbf37668e52edfb1ea60b171b7f" diff --git a/pyproject.toml b/pyproject.toml index 2ecc197..144180f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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"