Skip to content

Add release workflow #83

Add release workflow

Add release workflow #83

Workflow file for this run

---
name: Check
on:
push:
branches: [master, dev]
pull_request:
branches: [master, dev]
jobs:
lint:
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v3
- name: Install Poetry
run: pipx install poetry
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: "3.10"
cache: "poetry"
- name: Install dependencies
run: |
sudo apt install libgirepository1.0-dev
poetry env use $(which python3.10)
poetry install
- name: Lint with flake8
run: poetry run flake8
- name: Check formatting with black
run: poetry run black --check --diff --color .
- name: Check import sorting with isort
run: poetry run isort --check --diff --color .
- name: Check type annotation with mypy
run: poetry run mypy --strict .