Skip to content

Commit d10a8c9

Browse files
committed
You need a GPU runner to run stuff
1 parent 100f584 commit d10a8c9

File tree

3 files changed

+45
-71
lines changed

3 files changed

+45
-71
lines changed

.github/workflows/docs.yml

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -26,25 +26,11 @@ jobs:
2626
activate-environment: test
2727
python-version: '3.10'
2828
auto-activate: false
29-
- name: Verify conda environment
30-
shell: bash -l {0}
31-
run: |
32-
conda info
33-
which python
34-
which conda
3529
- name: Update pip
3630
shell: bash -l {0}
3731
run: python -m pip install --upgrade pip
38-
# - name: Install pytorch
39-
# shell: bash -l {0}
40-
# run: pip3 install --pre torch --index-url https://download.pytorch.org/whl/nightly/cu130 --force-reinstall
41-
# - name: Install monarch
42-
# shell: bash -l {0}
43-
# run: pip install assets/ci/monarch_no_torch-0.1.0.dev20251010-py3-none-any.whl
4432
- name: Install torchforge
4533
shell: bash -l {0}
46-
env:
47-
GH_TOKEN: ${{ github.token }}
4834
run: ./scripts/install.sh
4935
- name: Install docs dependencies
5036
shell: bash -l {0}
@@ -53,21 +39,6 @@ jobs:
5339
shell: bash -l {0}
5440
working-directory: docs
5541
run: |
56-
# Set up library paths to ensure all dependencies are available
57-
# This is critical for monarch and other native dependencies that need libpython3.10.so.1.0
58-
export LD_LIBRARY_PATH="${CONDA_PREFIX}/lib:${LD_LIBRARY_PATH:-}"
59-
60-
# Also set CUDA paths if needed
61-
if [ -d "/usr/local/cuda-12.9" ]; then
62-
export LD_LIBRARY_PATH="/usr/local/cuda-12.9/compat:${LD_LIBRARY_PATH}"
63-
export CUDA_HOME=/usr/local/cuda-12.9
64-
fi
65-
66-
# Verify dependencies can be imported before building docs
67-
echo "Verifying dependencies..."
68-
python -c "import forge; print('✓ torchforge imported successfully')"
69-
python -c "import monarch; print('✓ monarch imported successfully')"
70-
7142
# Build docs with -W (warnings as errors) and --keep-going to see all issues
7243
# Capture exit code but continue to see all errors
7344
set +e

.github/workflows/gpu_test.yaml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
1-
name: GPU Tests
1+
name: Unit Tests (GPU)
22

33
on:
4-
schedule:
5-
# Runs at midnight every day
6-
- cron: '0 0 * * *'
74
push:
85
branches: [ main ]
96
pull_request:
@@ -27,7 +24,7 @@ jobs:
2724
runs-on: linux.g5.12xlarge.nvidia.gpu
2825
strategy:
2926
matrix:
30-
python-version: ['3.11']
27+
python-version: ['3.10', '3.11', '3.12']
3128
steps:
3229
- name: Check out repo
3330
uses: actions/checkout@v4
@@ -44,9 +41,6 @@ jobs:
4441
run: ./scripts/install.sh
4542
- name: Run unit tests with coverage
4643
# TODO add all tests
47-
run: |
48-
export LD_PRELOAD=$CONDA/envs/test/lib/libpython3.10.so.1.0
49-
export LD_LIBRARY_PATH=$CONDA/envs/test/lib/libpython3.10.so.1.0
50-
pytest tests/unit_tests --cov=. --cov-report=xml --durations=20 -vv
44+
run: pytest tests/unit_tests --cov=. --cov-report=xml --durations=20 -vv
5145
- name: Upload Coverage to Codecov
5246
uses: codecov/codecov-action@v3

.github/workflows/unit_test.yaml

Lines changed: 42 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,44 @@
1-
name: Unit Tests
1+
# name: Unit Tests
22

3-
on:
4-
pull_request:
5-
push:
6-
branches: [ main ]
7-
workflow_dispatch:
3+
# on:
4+
# pull_request:
5+
# push:
6+
# branches: [ main ]
7+
# workflow_dispatch:
88

9-
jobs:
10-
unit_tests:
11-
runs-on: ubuntu-latest
12-
timeout-minutes: 15
13-
strategy:
14-
matrix:
15-
python-version: ['3.10']
16-
steps:
17-
- name: Check out repo
18-
uses: actions/checkout@v4
19-
- name: Setup conda env
20-
uses: conda-incubator/setup-miniconda@v2
21-
with:
22-
auto-update-conda: true
23-
miniconda-version: "latest"
24-
activate-environment: test
25-
python-version: ${{ matrix.python-version }}
26-
auto-activate: false
27-
# - name: Update pip
28-
# run: python -m pip install --upgrade pip
29-
- name: Install torchforge
30-
run: ./scripts/install.sh
31-
- name: Run unit tests with coverage
32-
# TODO add all tests
33-
run: pytest tests/unit_tests --cov=. --cov-report=xml --durations=20 -vv
34-
- name: Upload Coverage to Codecov
35-
uses: codecov/codecov-action@v3
9+
# jobs:
10+
# unit_tests:
11+
# runs-on: ubuntu-latest
12+
# timeout-minutes: 15
13+
# strategy:
14+
# matrix:
15+
# python-version: ['3.10']
16+
# steps:
17+
# - name: Check out repo
18+
# uses: actions/checkout@v4
19+
# with:
20+
# fetch-depth: 0
21+
# - name: Setup conda env
22+
# uses: conda-incubator/setup-miniconda@v2
23+
# with:
24+
# auto-update-conda: true
25+
# miniconda-version: "latest"
26+
# activate-environment: test
27+
# python-version: '3.10'
28+
# auto-activate: false
29+
# - name: Verify conda environment
30+
# shell: bash -l {0}
31+
# run: |
32+
# conda info
33+
# which python
34+
# which conda
35+
# - name: Update pip
36+
# shell: bash -l {0}
37+
# run: python -m pip install --upgrade pip
38+
# - name: Install torchforge
39+
# run: ./scripts/install.sh
40+
# - name: Run unit tests with coverage
41+
# # TODO add all tests
42+
# run: pytest tests/unit_tests --cov=. --cov-report=xml --durations=20 -vv
43+
# - name: Upload Coverage to Codecov
44+
# uses: codecov/codecov-action@v3

0 commit comments

Comments
 (0)