Skip to content

Refactor/robot

Refactor/robot #13

Workflow file for this run

name: pybullet-tree-sim-workflow
on:
pull_request:
branches: ['main', 'develop']
jobs:
build:
strategy:
fail-fast: true
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ['3.9', '3.10', '3.11', '3.12']
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install .
pip install flake8 black pytest
- name: Format with black
uses: psf/black@stable
with:
options: "--check --verbose --diff --line-length=120 ./"
- name: Lint with flake8
uses: py-actions/flake8@v2
# run: |
# # stop the build if there are Python syntax errors or undefined names
# $ flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
with:
args: "--count --select=E9,F63,F7,F82 --show-source --statistics"
# - name: Run tests
# run: |
# pytest