Commit 1ebe2008 authored by Adrian Pino's avatar Adrian Pino
Browse files

Add ci pipeline

parent fa77bc66
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

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

    - name: flake8 check
      run: flake8 src tests