mirror of
https://github.com/finegrain-ai/refiners.git
synced 2024-11-24 23:28:45 +00:00
35 lines
734 B
YAML
35 lines
734 B
YAML
name: CI
|
|
on: push
|
|
jobs:
|
|
|
|
lint_and_typecheck:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- 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
|
|
run: poetry install --no-interaction --all-extras
|
|
|
|
- name: black
|
|
run: poetry run black --check .
|
|
|
|
- name: lint
|
|
run: poetry run ruff check .
|
|
|
|
- name: typecheck
|
|
run: poetry run pyright
|