feat: update catalog #30
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: Lint | |
on: # yamllint disable-line rule:truthy | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.11' | |
- name: Install Zivid SDK | |
run: | | |
wget --progress=dot:giga \ | |
https://downloads.zivid.com/sdk/releases/2.14.1+b4e8f261-1/u22/amd64/zivid_2.14.1+b4e8f261-1_amd64.deb | |
sudo dpkg -i zivid_2.14.1+b4e8f261-1_amd64.deb | |
- name: Install Python linting tools | |
run: | | |
python -m pip install --upgrade pip | |
pip install poetry | |
poetry install | |
- name: Format | |
run: | | |
poetry run black zivid_nova tests --check | |
- name: Sort | |
run: | | |
poetry run isort zivid_nova --check-only --diff | |
- name: Pylint | |
run: | | |
poetry run pylint zivid_nova | |
- name: Mypy | |
run: | | |
poetry run mypy | |
- name: Test | |
run: | | |
poetry run pytest tests -s |