Adding upstream version 0.5.1.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
303fa6e9d8
commit
97e6d74bac
110 changed files with 12006 additions and 0 deletions
24
.github/release.yml
vendored
Normal file
24
.github/release.yml
vendored
Normal file
|
@ -0,0 +1,24 @@
|
|||
changelog:
|
||||
exclude:
|
||||
labels:
|
||||
- ignore-for-release
|
||||
categories:
|
||||
- title: Breaking 💥
|
||||
labels:
|
||||
- breaking
|
||||
- title: Added 🎉
|
||||
labels:
|
||||
- feature
|
||||
- title: Changed 🛠
|
||||
labels:
|
||||
- change
|
||||
- title: Fixed 🐛
|
||||
labels:
|
||||
- fix
|
||||
- bug
|
||||
- title: Dependencies 📦
|
||||
labels:
|
||||
- dependencies
|
||||
- title: Docs 📝
|
||||
labels:
|
||||
- documentation
|
69
.github/workflows/publish.yml
vendored
Normal file
69
.github/workflows/publish.yml
vendored
Normal file
|
@ -0,0 +1,69 @@
|
|||
name: Publish
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
release:
|
||||
types:
|
||||
- published
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: Build package
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: 3.12
|
||||
- name: Install Poetry
|
||||
uses: snok/install-poetry@v1
|
||||
with:
|
||||
virtualenvs-create: false
|
||||
version: 1.8.3
|
||||
- name: Build package distribution
|
||||
run: poetry build
|
||||
- name: Upload package artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: distribution
|
||||
path: dist
|
||||
test-release:
|
||||
name: Publish release to Test PyPI
|
||||
if: github.event_name == 'workflow_dispatch'
|
||||
runs-on: ubuntu-latest
|
||||
needs: build
|
||||
environment:
|
||||
name: test
|
||||
url: https://test.pypi.org/p/openapi-pydantic
|
||||
permissions:
|
||||
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
|
||||
steps:
|
||||
- name: Download package distribution
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: distribution
|
||||
path: dist
|
||||
- name: Publish package distribution to Test PyPI
|
||||
uses: pypa/gh-action-pypi-publish@release/v1
|
||||
with:
|
||||
repository-url: https://test.pypi.org/legacy/
|
||||
release:
|
||||
name: Publish release to PyPI
|
||||
if: github.event_name == 'release'
|
||||
runs-on: ubuntu-latest
|
||||
needs: build
|
||||
environment:
|
||||
name: production
|
||||
url: https://pypi.org/p/openapi-pydantic
|
||||
permissions:
|
||||
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
|
||||
steps:
|
||||
- name: Download package distribution
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: distribution
|
||||
path: dist
|
||||
- name: Publish package distribution to PyPI
|
||||
uses: pypa/gh-action-pypi-publish@release/v1
|
33
.github/workflows/test.yml
vendored
Normal file
33
.github/workflows/test.yml
vendored
Normal file
|
@ -0,0 +1,33 @@
|
|||
name: Test
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
pull_request:
|
||||
types: [opened, synchronize, reopened]
|
||||
|
||||
jobs:
|
||||
tox:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Set up Python ${{ matrix.python-version }}
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: ${{ matrix.python-version }}
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
python -m pip install tox tox-gh-actions
|
||||
- name: Install Poetry
|
||||
uses: snok/install-poetry@v1
|
||||
with:
|
||||
version: 1.8.3
|
||||
virtualenvs-create: true
|
||||
virtualenvs-in-project: true
|
||||
- name: Run tox test suite
|
||||
run: tox
|
Loading…
Add table
Add a link
Reference in a new issue