Skip to content

Latest commit

 

History

History
58 lines (44 loc) · 1.43 KB

File metadata and controls

58 lines (44 loc) · 1.43 KB

Development

Install local environment

  1. Install pyenv
  2. Create and activate new env pyenv virtualenv 3.10 tractorun && pyenv activate tractorun
  3. Install all dependencies: pip install ."[all]

Run linters

make all-fix && make all-check

Build new image for tests

./run_build.sh generic
./run_build.sh tractorch_tests
./run_build.sh tractorax_tests
./run_build.sh tensorproxy_tests

and update images in ./run_tests and tests/utils.py

Build and push a new image for examples

./run_build.sh examples_runtime --push

and update the image in ./examples/run_example

Update current image tag for tests and examples

./run_update_tag.sh new_tag

Run tests

To run tests on local YT run pytest

./run_tests.sh all . -s

To run tests on remote cluster

./run_tests.sh general . -s
./run_tests.sh tensorproxy . -s

It is possible to provide extra pytest options

./run_tests.sh generic test_sidecars.py
./run_tests.sh generic test_sidecars.py::test_sidecar_run

Build and upload

  1. Run Create release
  2. Run Build and upload to external pypi. Specify the latest tag from the list to upload the latest version.