Skip to content

Update for beamNG 0.32 #39

Update for beamNG 0.32

Update for beamNG 0.32 #39

Workflow file for this run

name: Tests
on:
push:
branches: [ main ]
pull_request:
branches: [ '*' ]
jobs:
Tests:
environment: CI
timeout-minutes: 5
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ 3.9, 3.11 ]
steps:
- name: Cancel Previous Runs
uses: styfle/[email protected]
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
sudo apt install -y xvfb x11-utils libxkbcommon-x11-0 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-xinerama0 libxcb-xfixes0 xdotool gifsicle
python -m pip install --upgrade pip
pip install -U wheel setuptools
pip install .[full]
pip install numpy>=1.20.1
pip install -r tests/requirements.txt
- name: Lint with flake8
run: |
pip install flake8
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with pytest
env:
DISPLAY: ':99.0'
MPLBACKEND: Agg
run: |
Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
pip install pytest coverage
coverage run --source=. -m pytest
coverage xml --omit "scripts/*" -o coverage-reports/coverage-.xml