Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add avro doc field of a record #90

Open
wants to merge 12 commits into
base: main
Choose a base branch
from
11 changes: 5 additions & 6 deletions .github/workflows/build-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,13 @@ permissions:
jobs:
build-and-publish:
runs-on: ubuntu-latest

env:
GITHUB_TOKEN: ${{ secrets.GIT_TOKEN }} # This token is provided by Actions, you do not need to create your own token

steps:
- name: Checkout
uses: actions/checkout@v3
with:
token: ${{ secrets.GIT_TOKEN }}

- name: Set up Python 3.9
uses: actions/setup-python@v3
with:
Expand Down Expand Up @@ -61,12 +62,10 @@ jobs:

- name: Create Release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GIT_TOKEN }} # This token is provided by Actions, you do not need to create your own token
with:
tag_name: v${{ env.NEW_VERSION }}
release_name: v${{ env.NEW_VERSION }}
body: |
pypi package: https://pypi.org/project/pydantic-avro/${{ env.NEW_VERSION }}/
draft: false
prerelease: false
prerelease: false
7 changes: 7 additions & 0 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ jobs:
fail-fast: false
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
pydantic-version: ["pydantic-v1", "pydantic-v2"]

steps:
- uses: actions/checkout@v3
Expand All @@ -30,6 +31,12 @@ jobs:
run: |
curl -sSL https://install.python-poetry.org | python3 -
poetry install
- name: Install Pydantic v1
if: matrix.pydantic-version == 'pydantic-v1'
run: poetry run pip install "pydantic>=1.4.0,<2.0.0"
- name: Install Pydantic v2
if: matrix.pydantic-version == 'pydantic-v2'
run: poetry run pip install "pydantic>=2.0.2,<3.0.0"
- name: Test with pytest
run: |
poetry run coverage run -m pytest
Expand Down
Loading