-
Notifications
You must be signed in to change notification settings - Fork 214
38 lines (36 loc) · 1.25 KB
/
test_autotune.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
name: UnitTests for Autotune Module
on:
pull_request:
types: [opened, synchronize, edited]
jobs:
run:
if: false == contains(github.event.pull_request.title, 'WIP')
runs-on: ${{ matrix.os }}
timeout-minutes: 20
strategy:
matrix:
os: [ubuntu-latest]
python-version: ['3.9']
torch-version: ['1.10.1']
torchvision-version: ['0.11.2']
torchaudio-version: ['0.10.1']
env:
OS: ${{ matrix.os }}
PYTHON: '3.9'
steps:
- uses: actions/checkout@master
- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@master
with:
python-version: ${{ matrix.python-version }}
- name: Install PyTorch ${{ matrix.torch-version }}+cpu
run: |
pip install numpy typing-extensions dataclasses
pip install torch==${{ matrix.torch-version}}+cpu torchvision==${{matrix.torchvision-version}}+cpu torchaudio==${{matrix.torchaudio-version}}+cpu -f https://download.pytorch.org/whl/torch_stable.html
- name: Install FS
run: |
pip install -e .[test,hpo]
- name: Test Autotune
run: |
python federatedscope/hpo.py --cfg federatedscope/autotune/baseline/fedhpo_vfl.yaml
[ $? -eq 1 ] && exit 1 || echo "Passed"