Skip to content

Commit 8a56871

Browse files
sayanghoshfacebook-github-bot
authored andcommitted
Setup circleci initial tests for cifar10 (facebookresearch#28)
Summary: Pull Request resolved: facebookresearch#28 Differential Revision: D32940543 fbshipit-source-id: c232f551b3b0d277e997c14aa1e61472422be1bc
1 parent 7b47c83 commit 8a56871

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

.circleci/config.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
version: 2.1
2+
3+
# -------------------------------------------------------------------------------------
4+
# Commands
5+
# -------------------------------------------------------------------------------------
6+
7+
commands:
8+
9+
py_3_7_setup:
10+
description: "Install and switch to Python 3.7.5; also install pip and pytest."
11+
steps:
12+
- run:
13+
name: "Setup Python v3.7.5 environment"
14+
command: |
15+
cd /opt/circleci/.pyenv && git pull && cd -
16+
pyenv install -s 3.7.5
17+
pyenv global 3.7.5
18+
pyenv local 3.7.5
19+
pyenv versions
20+
echo "In venv: $(pyenv local) - $(python -V), $(pip -V)"
21+
sudo "$(which python)" -m pip install --upgrade pip
22+
sudo "$(which python)" -m pip install pytest
23+
24+
cifar10_integration_test:
25+
description: "Run Cifar-10 integration test"
26+
steps:
27+
- run:
28+
name: "Install FL Simulator and run end to end Cifar10 test"
29+
command: |
30+
pip install flsim
31+
cd FLSim/examples
32+
python3 cifar10_example.py --config-file configs/cifar10_config.json

0 commit comments

Comments
 (0)