Skip to content

Commit 81b1cdb

Browse files
authored
Merge pull request #62 from rtbot-dev/RB-118
RB-118 Fix issue, python test failing in GitHub workflow
2 parents 4e5fc02 + 4bb4355 commit 81b1cdb

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

.github/workflows/preview.yaml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,8 @@ jobs:
5454
bazelisk test //libs/finance/test
5555
- name: Test python
5656
run: |
57-
# TODO: make sure we don't have to build the wheel and install it
58-
# in order to make the test to pass
59-
bazelisk build //libs/wrappers/python:rtbot_wheel
60-
pip install --force-reinstall dist/bin/libs/wrappers/python/rtbot-_VERSION_-py3-none-manylinux2014_x86_64.whl
61-
bazelisk test //libs/wrappers/python:rtbot_test
57+
# use legacy python toolchain until rules_python is adopted
58+
bazel test --incompatible_use_python_toolchains=false --python_path=$(which python) //libs/wrappers/python:rtbot_test
6259
- name: Test javascript
6360
run: |
6461
bazelisk test //libs/wrappers/javascript:test

libs/wrappers/python/rtbot_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import sys
22
import os
33

4-
# sys.path.append(os.getcwd() + "/libs/wrappers/python")
4+
sys.path.append(os.getcwd() + "/libs/wrappers/python")
55

66
import rtbot
77
from rtbot import rtbotapi as api

0 commit comments

Comments
 (0)