Skip to content

Clean up docs.

Clean up docs. #611

Workflow file for this run

# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: Python package
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.9.13']
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y ffmpeg xvfb freeglut3-dev libxcb-xinerama0 libxcb-icccm4 libxcb-image0 libxcb-render-util0 libxcb-xinerama0 libxkbcommon-x11-0 libxcb-keysyms1 libxcb-randr0
python -m pip install --upgrade pip
python -m pip install -e .[dev]
- name: Check source with flake8
run: |
flake8 ./src ./test
- name: Test with pytest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
# run without display
export HEADLESS=True
# uncomment below and add -s after pytest to show all debug output
# export QT_DEBUG_PLUGINS=1
# run tests
coverage run --source=src --omit=src/rlai/meta/* -m pytest ./test
# upload results to coveralls using github token above
coveralls --service=github