Skip to content

Commit 85421b5

Browse files
committed
use install script in GHA workflows
1 parent 994b400 commit 85421b5

File tree

3 files changed

+5
-28
lines changed

3 files changed

+5
-28
lines changed

.github/workflows/gpu_test.yaml

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -40,21 +40,8 @@ jobs:
4040
python-version: ${{ matrix.python-version }}
4141
- name: Update pip
4242
run: python -m pip install --upgrade pip
43-
- name: Install pinned torch nightly
44-
run: python -m pip install --pre torch==2.9.0.dev20250905 --no-cache-dir --index-url https://download.pytorch.org/whl/nightly/cu129
45-
- name: Download and install vLLM and its dependencies
46-
# TODO: this honestly could not be hackier if I tried
47-
run: |
48-
python -m pip install -r .github/packaging/vllm_reqs_12_9.txt
49-
python -m pip install vllm==0.10.1.dev0+g6d8d0a24c.d20251009.cu129 --no-cache-dir --index-url https://download.pytorch.org/whl/preview/forge
50-
- name: Install Monarch
51-
run: pip install torchmonarch==0.1.0rc1
52-
- name: Install torchtitan and torchstore
53-
run: |
54-
python -m pip install git+https://github.com/pytorch/torchtitan.git
55-
python -m pip install git+https://github.com/meta-pytorch/torchstore.git
56-
- name: Install dependencies
57-
run: python -m pip install --no-build-isolation -e ".[dev]"
43+
- name: Install forge
44+
run: ./scripts/install.sh
5845
- name: Run unit tests with coverage
5946
# TODO add all tests
6047
run: |

.github/workflows/unit_test.yaml

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -25,18 +25,8 @@ jobs:
2525
python-version: ${{ matrix.python-version }}
2626
- name: Update pip
2727
run: python -m pip install --upgrade pip
28-
- name: Install pytorch
29-
run: python -m pip install torch==2.9.0.dev20250826 --extra-index-url https://download.pytorch.org/whl/nightly/cpu
30-
- name: Install monarch
31-
run: pip install assets/ci/monarch_no_torch-0.1.0.dev20251010-py3-none-any.whl
32-
- name: Install torchstore
33-
run: pip install assets/wheels/torchstore-0.1.0-py3-none-any.whl
34-
- name: Install torchtitan
35-
run: |
36-
pip install assets/wheels/torchtitan-0.1.0-py3-none-any.whl
37-
pip install tyro
38-
- name: Install dependencies
39-
run: python -m pip install --no-build-isolation -e ".[dev]"
28+
- name: Install forge
29+
run: ./scripts/install.sh
4030
- name: Run unit tests with coverage
4131
# TODO add all tests
4232
run: pytest tests/unit_tests --cov=. --cov-report=xml --durations=20 -vv

scripts/install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ main() {
281281
pip install "$WHEEL_DIR"/*.whl
282282

283283
log_info "Installing Forge from source..."
284-
pip install -e .
284+
pip install -e ".[dev]"
285285

286286
# Set up environment
287287
log_info "Setting up environment..."

0 commit comments

Comments
 (0)