Skip to content

Commit

Permalink
Fixed github actions validation script for Linux.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 703161250
  • Loading branch information
agutkin committed Dec 5, 2024
1 parent 0d9e589 commit c509fbc
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/validate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,14 @@ jobs:
- uses: actions/checkout@v3
with:
submodules: true
- name: VirtualEnv
- name: SetupAndTest
run: |
export VIRTUAL_ENV=$(mktemp -d)
python -m venv "$VIRTUAL_ENV"
. $VIRTUAL_ENV/bin/activate
export VIRTUAL_ENV=$(mktemp -d)
echo "Virtual environment: $VIRTUAL_ENV"
python -m venv "$VIRTUAL_ENV"
. $VIRTUAL_ENV/bin/activate
echo "Setting up ..."
./setup.sh
echo "Testing ..."
./test.sh
deactivate
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# ProtoScribe: Modeling the Evolution of Writing

![CI status](https://github.com/google-research/protoscribe/actions/workflows/validate.yaml/badge.svg?branch=main)

<center>
<font size="+4">𓏞</font>
<p>
Expand Down
3 changes: 2 additions & 1 deletion test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ INDIVIDUAL_COMPONENTS=(
"protoscribe/sketches/inference/sketches_from_jsonl_test.py"
"protoscribe/speech"
"protoscribe/texts"
"protoscribe/vision"
# No tests in vision component.
# "protoscribe/vision"
)
for test_component in "${INDIVIDUAL_COMPONENTS[@]}"; do
"${PYTEST}" -v "${test_component}"
Expand Down

0 comments on commit c509fbc

Please sign in to comment.