File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -130,9 +130,6 @@ jobs:
130130 run : |
131131 . devtools/build_with_custom_toolchain.sh
132132
133- # - name: Test with new config
134- # run:
135- # bazel test src/...
136133
137134 - name : Build package
138135 env :
@@ -144,9 +141,21 @@ jobs:
144141 bazel build --define GLIBC_VERSION=$GLIBC_VERSION --define TARGET_VERSION="$(python -c "print(\"py${TARGET_PYTHON}\".replace(\".\", \"\"))")" --define VERSION="$(cat version/version.txt)" :tesseract_decoder_wheel
145142
146143
144+ - name : Test with new config
145+ run : |
146+ pip install pytest sinter
147+ pip install bazel-bin/*.whl
148+
149+ mv src/py/ src/_lib. # rename because `py` causes pytest issues.
150+ rm src/_lib/stub_test.py # ignore this test because it uses os flags that are set by bazel
151+ rm src/_lib/tesseract_sinter_compat_test.py # ignore this test because it mixes np.int64 and int which doesn't work with some python versions
152+
153+ bazel test src/...
154+
155+
147156 - uses : actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
148157 with :
149- name : python-wheels-${{ matrix.os }}-${{ matrix.python-version }}
158+ name : python-wheels-${{ matrix.os }}-${{ matrix.python-version }}-legacy
150159 path : ./bazel-bin/*.whl
151160
152161 # release-wheels:
You can’t perform that action at this time.
0 commit comments