-
Notifications
You must be signed in to change notification settings - Fork 175
65 lines (53 loc) · 1.46 KB
/
CI_sharding.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: CI_sharding
on:
pull_request:
push:
branches:
- master
jobs:
test_sharding:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
python-version: "3.10"
mpi: ""
runscript: "run_test_sharding_1cpu.sh"
- os: ubuntu-latest
python-version: "3.10"
mpi: ""
runscript: "run_test_sharding_2cpu.sh"
- os: self-hosted
python-version: "3.10"
mpi: "openmpi"
runscript: "run_test_sharding_distributed.sh"
- os: ubuntu-latest
python-version: "3.10"
mpi: ""
runscript: "run_standard_tests_with_sharding.sh"
steps:
- uses: actions/checkout@v4
with:
submodules: true
fetch-tags: true
- name: Set up Python ${{ matrix.python-version }} on ${{ matrix.os }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- uses: yezz123/setup-uv@v4
with:
uv-venv: .venv
- name: Setup MPI
uses: mpi4py/setup-mpi@v1
if: matrix.mpi != ''
with:
mpi: ${{ matrix.mpi }}
- name: Pip install packages
run: |
uv pip install jaxlib
uv pip install -e ".[dev,extra]"
- name: run tests
run: |
./test_sharding/"${{ matrix.runscript }}"