8000 dataset downloader and loader · google/sbsim@989d6f4 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Sync from Google internal codebase #164

Sync from Google internal codebase

Sync from Google internal codebase #164

Workflow file for this run

name: Python CI Build
on:
push:
branches:
- master
- main
- copybara_push
pull_request:
branches:
- master
- main
- copybara_push
jobs:
test:
runs-on: ubuntu-latest # Use an Ubuntu runner for the job
strategy:
matrix:
python-version: [3.10.12, 3.10.15, 3.11] # Python versions to test
steps:
- name: Checkout code
uses: actions/checkout@v4 # Checks out the repository's code
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }} # Use Python version from the matrix
- name: Install system dependencies
run: |
sudo apt update
sudo apt install -y protobuf-compiler ffmpeg # Install both protobuf and ffmpeg in one step
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
python -m venv .venv
source .venv/bin/activate
pip install poetry
poetry install --with dev
- name: Run the formatter
run: |
source .venv/bin/activate
pyink .
- name: Run the import sorter
run: |
source .venv/bin/activate
isort .
- name: Run the style checker
run: |
source .venv/bin/activate
pylint --rcfile=.pylintrc --ignore=proto smart_control
- name: Run tests
run: |
source .venv/bin/activate
pytest --disable-pytest-warnings
0