@@ -11,38 +11,27 @@ concurrency:
1111 group : ${{ github.head_ref || github.run_id }}
1212 cancel-in-progress : true
1313
14- env :
15- DEFAULT_PYTHON_VERSION : " 3.12"
16-
1714jobs :
1815 check-types-py :
1916 runs-on : ubuntu-latest
2017 steps :
2118 - uses : actions/checkout@v4
22- - uses : actions/setup-python@v5
23- with :
24- python-version : ${{ env.DEFAULT_PYTHON_VERSION }}
25- - uses : actions/cache@v4
26- with :
27- path : ~/.cache/uv
28- key : check-types-${{ hashFiles('pyproject.toml') }}
29- - run : curl -LsSf https://astral.sh/uv/install.sh | sh
3019 - uses : extractions/setup-just@v2
20+ - uses : astral-sh/setup-uv@v3
21+ with :
22+ enable-cache : true
23+ cache-dependency-glob : " **/pyproject.toml"
3124 - run : just check-types
3225
3326 lint-py :
3427 runs-on : ubuntu-latest
3528 steps :
3629 - uses : actions/checkout@v4
37- - uses : actions/setup-python@v5
38- with :
39- python-version : ${{ env.DEFAULT_PYTHON_VERSION }}
40- - uses : actions/cache@v4
41- with :
42- path : ~/.cache/uv
43- key : lint-${{ hashFiles('pyproject.toml') }}
44- - run : curl -LsSf https://astral.sh/uv/install.sh | sh
4530 - uses : extractions/setup-just@v2
31+ - uses : astral-sh/setup-uv@v3
32+ with :
33+ enable-cache : true
34+ cache-dependency-glob : " **/pyproject.toml"
4635 - run : just lint
4736
4837 test-py :
@@ -56,29 +45,26 @@ jobs:
5645 - " 3.12"
5746 steps :
5847 - uses : actions/checkout@v4
59- - uses : actions/setup-python@v5
60- with :
61- python-version : ${{ matrix.python-version }}
62- - uses : actions/cache@v4
63- with :
64- path : ~/.cache/uv
65- key : ${{ github.job }}-${{ matrix.python-version }}-${{ hashFiles('pyproject.toml') }}
66- - run : curl -LsSf https://astral.sh/uv/install.sh | sh
6748 - uses : extractions/setup-just@v2
49+ - uses : astral-sh/setup-uv@v3
50+ with :
51+ enable-cache : true
52+ cache-dependency-glob : " **/pyproject.toml"
53+ - run : uv python install ${{ matrix.python-version }}
6854 - run : just test
6955
7056 check-types-ts :
7157 runs-on : ubuntu-latest
7258 steps :
7359 - uses : actions/checkout@v4
60+ - uses : extractions/setup-just@v2
7461 - uses : actions/setup-node@v4
75- - run : npm ci
76- - run : npm run compile
62+ - run : just install-ts check-types-ts
7763
7864 lint-ts :
7965 runs-on : ubuntu-latest
8066 steps :
8167 - uses : actions/checkout@v4
68+ - uses : extractions/setup-just@v2
8269 - uses : actions/setup-node@v4
83- - run : npm ci
84- - run : npm run lint
70+ - run : just install-ts lint-ts
0 commit comments