-
Notifications
You must be signed in to change notification settings - Fork 171
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move type checking to other workflow, fix TS errors, add TSC checking
- Loading branch information
1 parent
5838ddc
commit 300885f
Showing
6 changed files
with
48 additions
and
22 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: Type check | ||
|
||
on: | ||
push: | ||
|
||
jobs: | ||
typecheck: | ||
name: Run type checkers | ||
runs-on: ubuntu-20.04 | ||
|
||
steps: | ||
- uses: actions/checkout@v2 # Check out the repository first. | ||
|
||
- name: Install Python dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
[ -f requirements.txt ] && pip install -r requirements.txt | ||
- name: Install TypeScript dependencies | ||
working-directory: frontend | ||
run: | | ||
npm i -g pnpm | ||
pnpm i --frozen-lockfile | ||
- name: Run pyright (Python) | ||
uses: jakebailey/pyright-action@v1 | ||
with: | ||
python-version: "3.10.6" | ||
no-comments: true | ||
|
||
- name: Run tsc (TypeScript) | ||
working-directory: frontend | ||
run: $(pnpm bin)/tsc --noEmit |
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
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
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
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