This repository was archived by the owner on Jun 9, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +32
-4
lines changed Expand file tree Collapse file tree 1 file changed +32
-4
lines changed Original file line number Diff line number Diff line change 9
9
- ' **'
10
10
11
11
jobs :
12
- check-formatting :
13
- name : Check code/doc formatting
12
+ check :
13
+ name : Check code formatting, typecheck the code
14
14
runs-on : ubuntu-latest
15
15
steps :
16
- - uses : actions/checkout@v3
17
- - uses : actions/setup-python@v4
16
+ - uses : actions/checkout@v4
17
+ - uses : actions/setup-python@v5
18
+
19
+ - name : Install poetry
20
+ shell : bash
21
+ run : |
22
+ python -m pip install poetry
23
+ echo "$HOME/.poetry/bin" >> $GITHUB_PATH
24
+
25
+ - name : Configure poetry
26
+ shell : bash
27
+ run : poetry config virtualenvs.in-project true
28
+
29
+ - name : Set up cache
30
+ uses : actions/cache@v3
31
+ id : cache
32
+ with :
33
+ path : .venv
34
+ key : venv-quality-${{ hashFiles('**/poetry.lock') }}
35
+
36
+ - name : Ensure cache is healthy
37
+ if : steps.cache.outputs.cache-hit == 'true'
38
+ shell : bash
39
+ run : poetry run pip --version >/dev/null 2>&1 || rm -rf .venv
40
+
41
+ - name : Install dependencies
42
+ shell : bash
43
+ run : poetry install
44
+
18
45
-
uses :
pre-commit/[email protected]
46
+ - uses : jakebailey/pyright-action@v2
You can’t perform that action at this time.
0 commit comments