mirror of
https://github.com/finegrain-ai/refiners.git
synced 2024-11-10 07:21:59 +00:00
32 lines
678 B
YAML
32 lines
678 B
YAML
|
name: CI
|
||
|
on: push
|
||
|
jobs:
|
||
|
|
||
|
lint_and_typecheck:
|
||
|
runs-on: ubuntu-latest
|
||
|
steps:
|
||
|
- name: checkout
|
||
|
uses: actions/checkout@v3
|
||
|
|
||
|
- 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 --extras=training
|
||
|
|
||
|
- name: lint
|
||
|
run: poetry run ruff check .
|
||
|
|
||
|
- name: typecheck
|
||
|
run: poetry run pyright
|