mirror of
https://github.com/Unstructured-IO/unstructured.git
synced 2025-11-15 01:47:27 +00:00
fix: build test failures (#1748)
* Fix missing HF_TOKEN when running containerized test for the build process * Fix pytest args when running specific test ## Testing Example run of the HF_TOKEN assgned for the containerized test in the build process: https://github.com/Unstructured-IO/unstructured/actions/runs/6504556437/job/17666669155 Example run of the pytest args working for the arm test (ran in a new workflow for testing on push): https://github.com/Unstructured-IO/unstructured/actions/runs/6504213010
This commit is contained in:
parent
4b84d596c2
commit
d9a0bd741a
3
.github/workflows/docker-publish.yml
vendored
3
.github/workflows/docker-publish.yml
vendored
@ -59,13 +59,14 @@ jobs:
|
||||
- name: Test images
|
||||
run: |
|
||||
echo "UNS_API_KEY=${{ secrets.UNS_API_KEY }}" > uns_test_env_file
|
||||
echo "UNSTRUCTURED_HF_TOKEN=${{ secrets.HF_TOKEN }}" > uns_test_env_file
|
||||
ARCH=$(cut -d "/" -f2 <<< ${{ matrix.docker-platform }})
|
||||
if [ "$ARCH" = "amd64" ]; then
|
||||
DOCKER_PLATFORM="${{ matrix.docker-platform }}" DOCKER_IMAGE="$DOCKER_BUILD_REPOSITORY:$ARCH-$SHORT_SHA" \
|
||||
make docker-test CI=true
|
||||
else
|
||||
DOCKER_PLATFORM="${{ matrix.docker-platform }}" DOCKER_IMAGE="$DOCKER_BUILD_REPOSITORY:$ARCH-$SHORT_SHA" \
|
||||
make docker-test CI=true TEST_NAME=partition/test_text.py
|
||||
make docker-test CI=true TEST_FILE=test_unstructured/partition/test_text.py
|
||||
fi
|
||||
DOCKER_IMAGE=$DOCKER_BUILD_REPOSITORY:$ARCH-$SHORT_SHA make docker-smoke-test
|
||||
- name: Push images
|
||||
|
||||
2
Makefile
2
Makefile
@ -399,7 +399,7 @@ docker-test:
|
||||
$(DOCKER_IMAGE) \
|
||||
bash -c "CI=$(CI) \
|
||||
UNSTRUCTURED_INCLUDE_DEBUG_METADATA=$(UNSTRUCTURED_INCLUDE_DEBUG_METADATA) \
|
||||
pytest $(if $(TEST_NAME),-k $(TEST_NAME),) test_unstructured"
|
||||
pytest $(if $(TEST_FILE),$(TEST_FILE),test_unstructured)"
|
||||
|
||||
.PHONY: docker-smoke-test
|
||||
docker-smoke-test:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user