Skip to content

Commit

Permalink
github actions for ci
Browse files Browse the repository at this point in the history
  • Loading branch information
mgonzs13 committed Oct 23, 2024
1 parent b94a2bf commit e266551
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Python CI with Docker and Formatting Check

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Build Docker image
run: docker build . -t yolo_ros

format_check:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Set up Python 3.x
uses: actions/setup-python@v4
with:
python-version: '3.x'

- name: Install autopep8
run: pip install autopep8

- name: Check Python formatting
run: autopep8 --diff --exit-code .

0 comments on commit e266551

Please sign in to comment.