Skip to content

Drop support for versions 3.6 and 3.7 of python #61

Drop support for versions 3.6 and 3.7 of python

Drop support for versions 3.6 and 3.7 of python #61

Workflow file for this run

name: CI/CD
on:
push:
pull_request:
jobs:
lint:
name: Lint code with black
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: psf/black@stable
test:
name: Run unit tests
needs: lint
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
python-version: ["3.8"]
include:
- os: ubuntu-latest
python-version: "3.9"
- os: ubuntu-latest
python-version: "3.10"
- os: ubuntu-latest
python-version: "3.11"
- os: ubuntu-latest
python-version: "3.12"
- os: ubuntu-latest
python-version: "3.13"
steps:
- name: Check out repo
uses: actions/checkout@v3
- name: Set up Node.js 16
uses: actions/setup-node@v3
with:
node-version: 16
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install json-schema-to-typescript
run: |
npm i -g json-schema-to-typescript
- name: Install python dependencies
run: |
python -m pip install -U pip wheel pytest pytest-cov coverage
python -m pip install -U .
- name: Run tests
run: |
python -m pytest --cov=pydantic2ts
- name: Generate LCOV File
if: ${{ matrix.os == 'ubuntu-latest' && matrix.python-version == '3.8' }}
run: |
coverage lcov
- name: Coveralls
if: ${{ matrix.os == 'ubuntu-latest' && matrix.python-version == '3.8' }}
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: coverage.lcov
deploy:
name: Deploy to PyPi
runs-on: ubuntu-latest
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
needs: test
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.8
uses: actions/setup-python@v4
with:
python-version: 3.8
- name: Install dependencies
run: |
python -m pip install -U pip wheel
- name: Build dist
run: |
python setup.py sdist bdist_wheel bdist_egg
- name: Publish package
uses: pypa/[email protected]
with:
user: __token__
password: ${{ secrets.pypi_password }}