refiners/.github/workflows/ci.yml

36 lines
687 B
YAML
Raw Normal View History

2023-08-04 13:28:41 +00:00
name: CI
2023-08-04 13:28:41 +00:00
on: push
jobs:
2023-08-04 13:28:41 +00:00
lint_and_typecheck:
runs-on: ubuntu-latest
2023-08-04 13:28:41 +00:00
steps:
- name: checkout
2023-09-04 13:41:31 +00:00
uses: actions/checkout@v4
2023-08-04 13:28:41 +00:00
- name: Install Rye
uses: eifinger/setup-rye@v1
2023-08-04 13:28:41 +00:00
with:
enable-cache: true
cache-prefix: 'refiners-rye-cache'
2023-08-04 13:28:41 +00:00
- name: add home shims dir to PATH
run: echo "$HOME/.rye/shims" >> $GITHUB_PATH
- name: pin python
run: rye pin 3.10
2023-08-04 13:28:41 +00:00
- name: rye sync
run: rye sync --all-features
2023-08-04 13:28:41 +00:00
- name: ruff format
run: rye run ruff format --check .
2023-08-29 15:53:39 +00:00
- name: ruff check
run: rye run ruff check .
2023-08-04 13:28:41 +00:00
- name: typecheck
run: rye run pyright