Skip to content

Commit fc4ff00

Browse files
committed
ensure PATH compatibility for GitHub Actions (facebookresearch#94)
- When testing type-check.yaml alone using act, it failed because act failed to find local path of uv. - Fixed PATH helps uv finding local path.
1 parent a09c04b commit fc4ff00

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/type-check.yaml

+5-1
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,15 @@ jobs:
1010
- name: Set up and update uv.
1111
run: |
1212
curl -LsSf https://astral.sh/uv/install.sh | sh
13+
export PATH="$HOME/.local/bin:$PATH"
1314
uv self update
1415
- name: Install Python.
15-
run: uv python install 3.10
16+
run: |
17+
export PATH="$HOME/.local/bin:$PATH"
18+
uv python install 3.10
1619
- name: Create venv and install the package.
1720
run: |
21+
export PATH="$HOME/.local/bin:$PATH"
1822
uv venv && source .venv/bin/activate
1923
uv pip install -e ".[dev]"
2024
- name: Run type checking with mypy.

0 commit comments

Comments
 (0)