-
Notifications
You must be signed in to change notification settings - Fork 6
42 lines (40 loc) · 958 Bytes
/
check.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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