Skip to content

Commit

Permalink
Cleanup CI action for Linux a bit.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 704296894
  • Loading branch information
agutkin committed Dec 9, 2024
1 parent 1d492bb commit 1d2117e
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,29 +12,40 @@
# See the License for the specific language governing permissions and
# limitations under the License.

name: Validate
name: Linux Tests

on: [push, pull_request]

permissions: read-all

# Prevent previous workflows from running.
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true

env:
FORCE_COLOR: true

jobs:
test-linux:
name: Build Linux
name: Test Linux
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: true
- name: SetupAndTest
submodules: "recursive"

- name: Create and start virtual environment
run: |
export VIRTUAL_ENV=$(mktemp -d)
echo "Virtual environment: $VIRTUAL_ENV"
python -m venv "$VIRTUAL_ENV"
. $VIRTUAL_ENV/bin/activate
echo "Setting up ..."
python3 -m venv venv
source venv/bin/activate
- name: Set up the packages
run: |
source venv/bin/activate
./setup.sh
echo "Testing ..."
-name: Testing
run: |
./test.sh
deactivate
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# ProtoScribe: Modeling the Evolution of Writing

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

<center>
<font size="+4">𓏞</font>
Expand Down

0 comments on commit 1d2117e

Please sign in to comment.