Skip to content

Update fakemodel.go #1269

Update fakemodel.go

Update fakemodel.go #1269

Workflow file for this run

name: CI
on: [push, pull_request]
jobs:
test:
# https://help.github.com/en/articles/virtual-environments-for-github-actions#supported-virtual-environments
runs-on: ubuntu-18.04
# https://help.github.com/en/actions/automating-your-workflow-with-github-actions/using-environment-variables
env:
PYTHONWARNINGS: 'ignore'
TF_CPP_MIN_LOG_LEVEL: '2'
# PATH: $(go env GOPATH)/bin:$PATH # FIXME: make it work
steps:
- uses: actions/checkout@v1
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: 3.6
- run: |
nproc
echo $PATH
go version
# C++ tests
- run: ./configure --build-tests --build-gtest
- run: make
- run: make test
# Go tests
- run: go test ./...
- run: GOBIN=$PWD/bin go install -v ./...
- run: ./scripts/tests/run-integration-tests.sh
- run: |
env \
KUNGFU_CONFIG_ENABLE_MONITORING=true \
KUNGFU_CONFIG_MONITORING_PERIOD=10ms \
./bin/kungfu-test-monitor -p 10ms -d 100ms
- run: ./bin/kungfu-run -q -H 127.0.0.1:4 -np 4 ./bin/kungfu-test-public-apis
# Python unit tests
- run: pip install -r tests/requirements.txt
- run: pip install --no-index .
- run: pytest ./tests/python/unit
# Python integration tests
- run: python -m kungfu.info
- run: python -m kungfu.tensorflow.v1.examples
- run: ./bin/kungfu-run -q -H 127.0.0.1:4 -np 4 python -m kungfu.tensorflow.v1.examples
- run: ./scripts/tests/run-python-tests.sh # FIXME: test it without tensorflow
- run: ./scripts/tests/run-op-tests.sh
- run: ./benchmarks/adaptation/bench-adaptation.sh # FIXME: make it a test
- run: ./bin/kungfu-run -q -H 127.0.0.1:8 -w -np 1 python ./tests/python/integration/test_step_based_schedule.py
- run: ./scripts/tests/run-optimizer-tests.sh
- run: |
DATA_DIR=$HOME/var/data \
./scripts/download-mnist.sh
- run: ./scripts/tests/run-train-tests.sh
- run: pip install deprecation #
- run: ./scripts/tests/run-elastic-test.sh
# Doc test
- run: pip install -r docs/requirements.txt
- run: make -C docs