Skip to content

Update unidecode requirement from >=1.0 to >=1.4.0 #125

Update unidecode requirement from >=1.0 to >=1.4.0

Update unidecode requirement from >=1.0 to >=1.4.0 #125

name: Build 📦
on:
- push
- pull_request
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: [ '3.9', '3.10', '3.11', '3.12' ]
steps:
- uses: actions/checkout@v2
- name: Test
uses: ./.github/actions/test
with:
python-version: ${{ matrix.python-version }}
pytest-args: '--cov-config .coveragerc --cov=json_to_models'
# - name: Coverage
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# run: |
# coverage xml
# coveralls --service=github
# TODO: Fix codacy issue with token
# python-codacy-coverage -r coverage.xml
release:
name: Build and publish
needs: test
if: startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.11
uses: actions/setup-python@v2
with:
python-version: 3.11
- name: Install deps
run: |
python -m pip install --upgrade pip build
pip install setuptools wheel twine
- name: Build a binary wheel and a source tarball
run: |
python -m build
- name: Publish distribution 📦 to PyPI
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
run: |
twine upload dist/*
- name: Upload release to github
uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: false
files: |
dist/*