Commit 3a4f4af3 authored by Adrian Pino's avatar Adrian Pino Committed by GitHub
Browse files

Merge pull request #53 from OpenOperatorPlatform/feature/add-ci-cd-pipeline

Feature/add ci cd pipeline
parents fa77bc66 1e066964
Loading
Loading
Loading
Loading
+47 −0
Original line number Diff line number Diff line
name: CI Pipeline

on:
  push:
    branches: [ main ]
  pull_request:
    branches: [ main ]

jobs:
  # tests:
  #   name: Run tests
  #   runs-on: ubuntu-latest
  #   container:
  #     image: python:3.12-slim

  #   steps:
  #   - name: Checkout code
  #     uses: actions/checkout@v4

  #   - name: Install dependencies
  #     run: pip install -r requirements.txt

  #   - name: Run pytest
  #     run: pytest tests/edgecloud

  lint:
    name: Run linters
    if: github.event_name == 'pull_request'
    runs-on: ubuntu-latest
    container:
      image: python:3.12-slim

    steps:
    - name: Checkout code
      uses: actions/checkout@v4

    - name: Install dependencies
      run: pip install -r requirements.txt

    - name: isort check
      run: isort src tests --check --profile black --filter-files

    - name: black check
      run: black src tests --check

    - name: flake8 check
      run: flake8 src tests
+3 −0
Original line number Diff line number Diff line
@@ -3,6 +3,7 @@ asttokens==3.0.0
attrs==25.3.0
backcall==0.2.0
beautifulsoup4==4.13.3
black==24.8.0
bleach==6.2.0
build==1.2.2.post1
certifi==2025.1.31
@@ -19,10 +20,12 @@ exceptiongroup==1.2.2
executing==2.2.0
fastjsonschema==2.21.1
filelock==3.18.0
flake8==7.1.1
identify==2.6.10
idna==3.10
iniconfig==2.0.0
ipython==8.12.3
isort==5.13.2
jedi==0.19.2
Jinja2==3.1.6
jsonschema==4.23.0