Skip to content

Merge pull request #35 from noproto/main #195

Merge pull request #35 from noproto/main

Merge pull request #35 from noproto/main #195

Workflow file for this run

name: Lint & build
on:
push:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
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 --upgrade pip
python -m pip install .[dev,cli]
python -m pip install 'opencv-python-headless>=4.8,<4.9'
- name: Lint
run: |
make lint
- name: Isort
run: |
make isort-check
- name: Typecheck
run: |
make type
- name: Test
run: |
make test
- name: Build package
run: |
make build
- name: Save built package
uses: actions/upload-artifact@v3
with:
name: package
path: |
dist
- name: Publish to PyPi
if: ${{ github.ref_type == 'tag' }}
uses: pypa/[email protected]
with:
password: ${{ secrets.PYPI_API_TOKEN }}
print_hash: true