Skip to content

⬆️ Bump pydantic from 2.7.1 to 2.8.2 #402

⬆️ Bump pydantic from 2.7.1 to 2.8.2

⬆️ Bump pydantic from 2.7.1 to 2.8.2 #402

Workflow file for this run

---
name: Test
"on": [pull_request, workflow_dispatch]
jobs:
test:
if: "! contains(toJSON(github.event.head_commit.message), ':memo: Update CHANGELOG.md')"
name: Python ${{ matrix.python-version }} tests
runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
fail-fast: false
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install poetry
run: make poetry-download
- name: Set up cache
uses: actions/cache@v2
with:
path: ~/.cache/pypoetry/virtualenvs
key: ${{ runner.os }}-pip-${{ hashFiles('**/poetry.lock') }}
- name: Install dependencies
run: make install
- name: Install dependencies ci
run: poetry run pip install pytest-github-actions-annotate-failures
- name: Run tests
run: make test
lint:
if: "! contains(toJSON(github.event.head_commit.message), ':memo: Update CHANGELOG.md')"
name: Python lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install poetry
run: make poetry-download
- name: Set up cache
uses: actions/cache@v2
with:
path: ~/.cache/pypoetry/virtualenvs
key: ${{ runner.os }}-pip-${{ hashFiles('**/poetry.lock') }}
- name: Install dependencies
run: make install
- name: Run tests
run: make lint apiclient_pydantic
dependabot-auto-merge:
name: Dependabot auto-merge
runs-on: ubuntu-latest
needs: [test, lint]
if: ${{ github.event.pull_request.user.login == 'dependabot[bot]' }}
permissions:
contents: write
pull-requests: write
steps:
- name: Dependabot metadata
id: dependabot-metadata
uses: dependabot/[email protected]
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
- name: Enable auto-merge for Dependabot PRs
if: ${{ steps.dependabot-metadata.outputs.update-type == 'version-update:semver-minor' || steps.dependabot-metadata.outputs.update-type == 'version-update:semver-patch' }}
run: gh pr merge --auto --rebase "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}