File tree Expand file tree Collapse file tree 2 files changed +66
-0
lines changed Expand file tree Collapse file tree 2 files changed +66
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Run Flax dependency tests
2+
3+ on :
4+ pull_request :
5+ branches :
6+ - main
7+ push :
8+ branches :
9+ - main
10+
11+ concurrency :
12+ group : ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
13+ cancel-in-progress : true
14+
15+ jobs :
16+ check_flax_dependencies :
17+ runs-on : ubuntu-latest
18+ steps :
19+ - uses : actions/checkout@v3
20+ - name : Set up Python
21+ uses : actions/setup-python@v4
22+ with :
23+ python-version : " 3.8"
24+ - name : Install dependencies
25+ run : |
26+ python -m pip install --upgrade pip
27+ pip install -e .
28+ pip install "jax[cpu]>=0.2.16,!=0.3.2"
29+ pip install "flax>=0.4.1"
30+ pip install "jaxlib>=0.1.65"
31+ pip install pytest
32+ - name : Check for soft dependencies
33+ run : |
34+ pytest tests/others/test_dependencies.py
Original file line number Diff line number Diff line change 1+ name : Run Torch dependency tests
2+
3+ on :
4+ pull_request :
5+ branches :
6+ - main
7+ push :
8+ branches :
9+ - main
10+
11+ concurrency :
12+ group : ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
13+ cancel-in-progress : true
14+
15+ jobs :
16+ check_torch_dependencies :
17+ runs-on : ubuntu-latest
18+ steps :
19+ - uses : actions/checkout@v3
20+ - name : Set up Python
21+ uses : actions/setup-python@v4
22+ with :
23+ python-version : " 3.8"
24+ - name : Install dependencies
25+ run : |
26+ python -m pip install --upgrade pip
27+ pip install -e .
28+ pip install torch torchvision torchaudio
29+ pip install pytest
30+ - name : Check for soft dependencies
31+ run : |
32+ pytest tests/others/test_dependencies.py
You can’t perform that action at this time.
0 commit comments