mirror of
https://github.com/finegrain-ai/refiners.git
synced 2024-11-22 06:08:46 +00:00
86c54977b9
Co-authored-by: Cédric Deltheil <cedric@deltheil.me> Co-authored-by: Pierre Chapuis <git@catwell.info>
36 lines
687 B
YAML
36 lines
687 B
YAML
name: CI
|
|
|
|
on: push
|
|
|
|
jobs:
|
|
lint_and_typecheck:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Install Rye
|
|
uses: eifinger/setup-rye@v1
|
|
with:
|
|
enable-cache: true
|
|
cache-prefix: 'refiners-rye-cache'
|
|
|
|
- name: add home shims dir to PATH
|
|
run: echo "$HOME/.rye/shims" >> $GITHUB_PATH
|
|
|
|
- name: pin python
|
|
run: rye pin 3.10
|
|
|
|
- name: rye sync
|
|
run: rye sync --all-features
|
|
|
|
- name: ruff format
|
|
run: rye run ruff format --check .
|
|
|
|
- name: ruff check
|
|
run: rye run ruff check .
|
|
|
|
- name: typecheck
|
|
run: rye run pyright
|