Smoke tests #23
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Smoke tests | |
on: | |
push: | |
branches: | |
- approxit/smoke-tests | |
jobs: | |
build: | |
name: Smoke tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Install python | |
uses: actions/setup-python@v3 | |
with: | |
python-version: "3.10" | |
- name: Install poetry | |
uses: Gr1N/setup-poetry@v8 | |
- name: Install dependencies | |
run: poetry install --no-ansi | |
- name: Call `ray up` | |
env: | |
PYTHONUNBUFFERED: 1 | |
RUST_LOG: "INFO,ya_erc20_driver::erc20::wallet=debug" | |
run: poetry run ray up golem-cluster-dev.yaml -y | |
- name: Run examples/calculate.pi | |
run: poetry run ray submit golem-cluster-dev.yaml examples/calculate_pi.py | |
- name: Call `ray down` | |
run: poetry run ray down golem-cluster-dev.yaml -y | |
- name: Check node creation in logs | |
run: poetry run python .github/workflows/smoke_tests.py /tmp/ray_on_golem/webserver_debug.log | |
- name: Collects logs | |
if: always() | |
uses: actions/upload-artifact@v3 | |
with: | |
name: logs | |
path: | | |
/tmp/ray_on_golem/webserver_debug.log | |
/tmp/ray_on_golem/yagna.log |