Skip to content

update version

update version #115

Workflow file for this run

name: Bharat OCR
on:
workflow_call:
workflow_dispatch:
push:
branches: [main, dev, release, staging]
pull_request:
branches: [main, dev, release, staging]
jobs:
test_case:
runs-on: ubuntu-latest
steps:
- name: Check out Code
uses: actions/checkout@v2
with:
fetch-depth: 1
# - name: Setup tmate session
# uses: mxschmitt/action-tmate@v3
- name: Install pytest
run: |
pip install -r requirements.txt
pip install pytest
pip install python-dateutil
pytest .
continue-on-error: false
spell_check:
runs-on: ubuntu-latest
steps:
- name: Check out Code
uses: actions/checkout@v2
with:
fetch-depth: 1
- name: Install codespell
run: |
pip install codespell
codespell #--skip=".git,./scripts/lambda/packages"
continue-on-error: false
black_check:
runs-on: ubuntu-latest
steps:
- name: Check out Code
uses: actions/checkout@v2
with:
fetch-depth: 1
- name: Install black
run: |
pip install black
black . --check
continue-on-error: false
password_check:
runs-on: ubuntu-latest
steps:
- name: Check out HEAD
uses: actions/checkout@v2
with:
fetch-depth: 1
- name: Check for password
uses: AlicanAkkus/[email protected]
publish_to_pypi:
needs: [password_check, password_check, black_check, spell_check, test_case]
runs-on: ubuntu-latest
steps:
- name: Check out HEAD
uses: actions/checkout@v2
with:
fetch-depth: 1
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
- name: Build package
run: python -m build
- name: Publish package
if: ${{ github.ref_name == 'main' }}
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}