Skip to content

Commit

Permalink
github actions ci fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
mgonzs13 committed Oct 23, 2024
1 parent 466779b commit 202733c
Showing 1 changed file with 15 additions and 25 deletions.
40 changes: 15 additions & 25 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,39 +2,29 @@ name: Python CI with Docker and Formatting Check

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

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

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

- name: Build Docker image
run: docker build . -t yolo_ros
- name: autopep8
uses: peter-evans/autopep8@v2
with:
args: --recursive --in-place .

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

- 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 .
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Build and push
uses: docker/build-push-action@v6
with:
push: false

0 comments on commit 202733c

Please sign in to comment.