Skip to content

updated java repo

updated java repo #361

Workflow file for this run

name: tests
on:
push:
branches: [ '*' ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.9]
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
submodules: recursive
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Set up JDK 8 and
uses: actions/setup-java@v1
with:
java-version: '8.x' # The JDK version to make available on the path.
java-package: jdk # (jre, jdk, or jdk+fx) - defaults to jdk
architecture: x64 # (x64 or x86) - defaults to x64
- name: Build microrts
run: bash build.sh
- name: Install Poetry
uses: snok/install-poetry@v1
with:
virtualenvs-create: true
virtualenvs-in-project: true
installer-parallel: true
- name: Load cached venv
id: cached-poetry-dependencies
uses: actions/cache@v2
with:
path: .venv
key: venv-${{ runner.os }}-${{ hashFiles('**/poetry.lock') }}
- name: Install dependencies
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
continue-on-error: true
run: poetry install --no-interaction --no-root
- name: Install library
run: poetry install --no-interaction
- name: Run headless test
uses: GabrielBB/xvfb-action@v1
with:
run: |
xvfb-run -a poetry run pytest -p no:faulthandle tests -v