Skip to content

Avoid putting the test data in the wheel #182

Avoid putting the test data in the wheel

Avoid putting the test data in the wheel #182

Workflow file for this run

name: Lint & build
on: [push]
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
- name: Lint
run: |
make lint
- 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