@@ -25,35 +25,29 @@ jobs:
2525 - " 3.14"
2626 - " 3.14t"
2727 steps :
28- - uses : actions/setup-python@v5
28+ - name : Install uv
29+ uses : astral-sh/setup-uv@v5
2930 with :
30- python-version : " 3.10"
31- - name : Install hatch
32- run : pip install -U hatch
31+ version : " 0.7.12"
32+ python-version : ${{ matrix.python-version }}
3333 - uses : actions/checkout@v4
3434 with :
3535 fetch-depth : 0
3636 persist-credentials : false
37- - uses : actions/setup-python@v5
38- with :
39- cache : pip
40- cache-dependency-path : " pyproject.toml"
41- python-version : ${{ matrix.python-version }}
42- allow-prereleases : true
4337 - uses : dtolnay/rust-toolchain@stable
4438 - name : Build LibCST
45- run : hatch -vv env create
39+ run : uv sync --locked --dev
4640 - name : Native Parser Tests
47- run : hatch run test
41+ run : uv run poe test
4842 - name : Pure Parser Tests
4943 env :
5044 COVERAGE_FILE : .coverage.pure
5145 LIBCST_PARSER_TYPE : pure
52- run : hatch run test
46+ run : uv run poe test
5347 - name : Coverage
5448 run : |
55- hatch run coverage combine .coverage.pure
56- hatch run coverage report
49+ uv run coverage combine .coverage.pure
50+ uv run coverage report
5751
5852 # Run linters
5953 lint :
@@ -63,15 +57,13 @@ jobs:
6357 with :
6458 fetch-depth : 0
6559 persist-credentials : false
66- - uses : actions/setup-python@v5
60+ - name : Install uv
61+ uses : astral-sh/setup-uv@v5
6762 with :
68- cache : pip
69- cache-dependency-path : " pyproject.toml"
63+ version : " 0.7.12"
7064 python-version : " 3.10"
71- - name : Install hatch
72- run : pip install -U hatch
73- - run : hatch run lint
74- - run : hatch run fixtures
65+ - run : uv run poe lint
66+ - run : uv run poe fixtures
7567
7668 # Run pyre typechecker
7769 typecheck :
@@ -81,14 +73,12 @@ jobs:
8173 with :
8274 fetch-depth : 0
8375 persist-credentials : false
84- - uses : actions/setup-python@v5
76+ - name : Install uv
77+ uses : astral-sh/setup-uv@v5
8578 with :
86- cache : pip
87- cache-dependency-path : " pyproject.toml"
79+ version : " 0.7.12"
8880 python-version : " 3.10"
89- - name : Install hatch
90- run : pip install -U hatch
91- - run : hatch run typecheck
81+ - run : uv run poe typecheck
9282
9383 # Build the docs
9484 docs :
@@ -98,15 +88,13 @@ jobs:
9888 with :
9989 fetch-depth : 0
10090 persist-credentials : false
101- - uses : actions/setup-python@v5
91+ - name : Install uv
92+ uses : astral-sh/setup-uv@v5
10293 with :
103- cache : pip
104- cache-dependency-path : " pyproject.toml"
94+ version : " 0.7.12"
10595 python-version : " 3.10"
106- - name : Install hatch
107- run : pip install -U hatch
10896 - uses : ts-graphviz/setup-graphviz@v2
109- - run : hatch run docs: docs
97+ - run : uv run --group docs poe docs
11098 - name : Archive Docs
11199 uses : actions/upload-artifact@v4
112100 with :
0 commit comments