refactor to decouple the event source #12
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: finegrain CI | |
on: | |
push: | |
paths: | |
- finegrain/** | |
- .github/workflows/finegrain-ci.yml | |
jobs: | |
lint_and_typecheck: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ./finegrain | |
steps: | |
- name: checkout | |
uses: actions/checkout@v4 | |
- name: Install Rye | |
uses: eifinger/setup-rye@v4 | |
with: | |
enable-cache: true | |
cache-prefix: 'finegrain-rye-cache' | |
working-directory: 'finegrain' | |
- name: add shims dir to PATH | |
run: echo "$RYE_HOME/shims" >> $GITHUB_PATH | |
- name: get pyright | |
run: rye tools install pyright --force | |
- name: rye sync | |
run: rye sync --no-dev --no-lock | |
- name: format | |
run: rye fmt --check | |
- name: lint | |
run: rye lint | |
- name: typecheck | |
run: pyright |