added degree logic #86
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Bharat OCR | |
on: | |
workflow_call: | |
workflow_dispatch: | |
push: | |
branches: [main, dev, release, staging] | |
pull_request: | |
branches: [main, dev, release, staging] | |
jobs: | |
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: | |
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 }} |