CI: lint all py files in root folder #50
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI Build | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
branches: [master] | |
jobs: | |
linux: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Install Dependencies | |
run: | | |
sudo apt update | |
sudo apt install -y python3-pip python3-tk xvfb libxrandr2 libegl1 | |
pip3 install ogre-python pylint | |
- uses: actions/checkout@v4 | |
- name: Test | |
run: | | |
pylint *.py | |
cd test | |
xvfb-run timeout --preserve-status 5s python3 ../ogre_mesh_viewer.py cube.obj |