4040 cache-dependency-path : " pyproject.toml"
4141 python-version : ${{ matrix.python-version }}
4242 allow-prereleases : true
43- - uses : actions-rs/toolchain@v1
44- with :
45- toolchain : stable
43+ - uses : dtolnay/rust-toolchain@stable
4644 - name : Build LibCST
4745 run : hatch -vv env create
4846 - name : Native Parser Tests
@@ -135,26 +133,14 @@ jobs:
135133 with :
136134 python-version : ${{ matrix.python-version }}
137135 - name : test
138- uses : actions-rs/cargo@v1
139- with :
140- command : test
141- args : --manifest-path=native/Cargo.toml --release
136+ run : cargo test --manifest-path=native/Cargo.toml --release
142137 - name : test without python
143138 if : matrix.os == 'ubuntu-latest'
144- uses : actions-rs/cargo@v1
145- with :
146- command : test
147- args : --manifest-path=native/Cargo.toml --release --no-default-features
139+ run : cargo test --manifest-path=native/Cargo.toml --release --no-default-features
148140 - name : clippy
149- uses : actions-rs/clippy-check@v1
150- with :
151- token : ${{ secrets.GITHUB_TOKEN }}
152- args : --manifest-path=native/Cargo.toml --all-features
141+ run : cargo clippy --manifest-path=native/Cargo.toml --all-targets --all-features
153142 - name : compile-benchmarks
154- uses : actions-rs/cargo@v1
155- with :
156- command : bench
157- args : --manifest-path=native/Cargo.toml --no-run
143+ run : cargo bench --manifest-path=native/Cargo.toml --no-run
158144
159145 rustfmt :
160146 name : Rustfmt
@@ -167,7 +153,5 @@ jobs:
167153 with :
168154 components : rustfmt
169155 - run : rustup component add rustfmt
170- - uses : actions-rs/cargo@v1
171- with :
172- command : fmt
173- args : --all --manifest-path=native/Cargo.toml -- --check
156+ - name : format
157+ run : cargo fmt --all --manifest-path=native/Cargo.toml -- --check
0 commit comments