forked from google/myanmar-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MT-71 First version of GHA CI script for Myanmar tools.
Ticket: google#71 Issue 70: Work in review comments. MT-71 More review comments.
- Loading branch information
gnrunge
committed
Mar 15, 2021
1 parent
ef2fb1e
commit 619e8ad
Showing
1 changed file
with
77 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
name: Myanmar Tools CI | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: '*' | ||
|
||
jobs: | ||
|
||
# Training Data Project | ||
training: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
java-version: '8' | ||
- name: Training Data | ||
run: | | ||
cd training | ||
mvn compile | ||
mvn test | ||
# Generate-Converter Project | ||
gen-conv: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
java-version: '8' | ||
- name: Generate-Converter | ||
run: | | ||
cd genconvert | ||
mvn compile | ||
mvn test | ||
# Check consistency between genconvert and compiled converters | ||
genconvert: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
java-version: '8' | ||
- name: Consistency genconvert vs compiled | ||
run: | | ||
make transcompile | ||
# There should not be any dirty files: | ||
git update-index --refresh | ||
git diff-index HEAD --exit-code | ||
# Java Client | ||
java: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
java-version: '7' | ||
- name: Java client test | ||
run: | | ||
cd clients/java | ||
mvn compile | ||
mvn test | ||
# Python Client | ||
python: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Setup Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.8' | ||
- name: Python client test | ||
run: | | ||
cd clients/python | ||
python setup.py install | ||
python -m unittest |