🐍 Geometric Computer Vision Library for Spatial AI
Python artificial-intelligencecomputer-visiondeep-learninghacktoberfestimage-processingmachine-learningneural-networkpythonpytorchroboticsspatial-ai
Install Codeflash github action (#3212)
Saurabh Misra4e11cee6ec37
diff --git a/.github/workflows/codeflash.yml b/.github/workflows/codeflash.ymlnew file mode 100644index 000000000..f45460aad--- /dev/null+++ b/.github/workflows/codeflash.yml@@ -0,0 +1,39 @@+name: Codeflash Optimization++on:+ pull_request:+ paths:+ - 'kornia/**'+ workflow_dispatch:++concurrency:+ # Any new push to the PR will cancel the previous run, so that only the latest code is optimized+ group: ${{ github.workflow }}-${{ github.ref }}+ cancel-in-progress: true+++jobs:+ optimize:+ name: Optimize new Python code+ # Don't run codeflash on codeflash-ai[bot] commits, prevent duplicate optimizations+ if: ${{ github.actor != 'codeflash-ai[bot]' }}+ runs-on: ubuntu-latest+ env:+ CODEFLASH_API_KEY: ${{ secrets.CODEFLASH_API_KEY }}++ steps:+ - name: 🛎️ Checkout+ uses: actions/checkout@v4+ with:+ fetch-depth: 0+ - name: 🐍 Set up Python+ uses: actions/setup-python@v5+ with:+ python-version: '3.12'+ - name: 📦 Install Dependencies+ run: |+ python -m pip install --upgrade pip+ pip install -e ".[dev,x]"+ pip install codeflash+ - name: ⚡️Codeflash Optimization+ run: codeflashdiff --git a/pyproject.toml b/pyproject.tomlindex 5869ec147..90c5080c9 100644--- a/pyproject.toml+++ b/pyproject.toml@@ -274,7 +274,6 @@ ignore_errors = truematch = '.*\.py'[tool.codeflash]-# All paths are relative to this pyproject.toml's directory.module-root = "kornia"tests-root = "tests"test-framework = "pytest"