Skip to content

Commit 9c339b3

Browse files
committed
Fix workflows on windows
1 parent 837bc36 commit 9c339b3

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

.github/workflows/lint_and_test.yml

+12-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,18 @@ jobs:
3535
- uses: Swatinem/rust-cache@v2
3636

3737
- uses: actions/setup-python@v3
38-
- uses: pre-commit/[email protected]
38+
39+
- name: Set up Ruby on Windows
40+
if: runner.os == 'Windows'
41+
uses: ruby/setup-ruby@v1
42+
with:
43+
ruby-version: '3.1'
44+
msys2: true
45+
46+
- name: Install pre-commit dependencies
47+
run: python -m pip install pre-commit
48+
49+
- uses: pre-commit/[email protected]
3950
name: Run pre-commit hooks
4051

4152
- name: Run Rust tests

0 commit comments

Comments
 (0)