refiners/.github/workflows/ci.yml

35 lines
734 B
YAML
Raw Normal View History

2023-08-04 13:28:41 +00:00
name: CI
on: push
jobs:
lint_and_typecheck:
runs-on: ubuntu-latest
steps:
- name: checkout
2023-09-04 13:41:31 +00:00
uses: actions/checkout@v4
2023-08-04 13:28:41 +00:00
- name: Set up python
id: setup-python
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install Poetry
uses: snok/install-poetry@v1
with:
virtualenvs-create: true
virtualenvs-in-project: true
installer-parallel: true
- name: poetry install
2023-09-13 13:15:50 +00:00
run: poetry install --no-interaction --all-extras
2023-08-04 13:28:41 +00:00
2023-08-29 15:53:39 +00:00
- name: black
run: poetry run black --check .
2023-08-04 13:28:41 +00:00
- name: lint
run: poetry run ruff check .
- name: typecheck
run: poetry run pyright