Skip to content

Frontend-JVM: Add new frontend for jvm using tree-sitter #1891

Frontend-JVM: Add new frontend for jvm using tree-sitter

Frontend-JVM: Add new frontend for jvm using tree-sitter #1891

Workflow file for this run

name: Unit tests
on:
pull_request:
paths:
- 'frontends/**'
- 'src/**'
- 'test/**'
- '.github/workflows/testing.yml'
permissions: read-all
jobs:
unittests:
runs-on: ubuntu-latest
name: Unit Tests
steps:
- name: Check out source repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v2.4.0
- name: Set up Python environment
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v3.0.0
with:
python-version: "3.8"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Prepare test case files
run: |
cd tests/java && ./runTest.sh test3 && ./runTest.sh test4 && ./runTest.sh test11 && ./runTest.sh test12
- name: Test unittests and generate coverage report
run: |
coverage run -m pytest -vv src/test/
- name: Display and clean up unittests coverage report
run: |
coverage report -m
rm .coverage