Skip to content

Commit

Permalink
MT-71 First version of GHA CI script for Myanmar tools.
Browse files Browse the repository at this point in the history
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.
77 changes: 77 additions & 0 deletions .github/workflows/mynmr_tools_ci.yml
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

0 comments on commit 619e8ad

Please sign in to comment.