Repository navigation
feat: detect Amp, OpenHands, Factory Droid and Jules signatures (#606) #1237
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: main | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| paths: | |
| - "**.py" | |
| - pyproject.toml | |
| - ".github/workflows/main.yml" | |
| - ".pre-commit-config.yaml" | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| build: | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| persist-credentials: false | |
| - uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0 | |
| with: | |
| python-version: '3.x' | |
| - name: Install nox | |
| run: | | |
| python -m pip install --only-binary :all: --upgrade pip | |
| python -m pip install --only-binary :all: ".[dev]" | |
| - name: Run pre-commit | |
| run: | | |
| nox -s lint | |
| nox -s test-hook | |
| - name: Build wheel | |
| run: nox -s build | |
| - name: Upload wheel as artifact | |
| uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 | |
| with: | |
| name: commit-check_wheel | |
| path: ${{ github.workspace }}/dist/*.whl | |
| - name: Collect Coverage | |
| run: nox -s coverage | |
| - name: Upload coverage to Codecov | |
| if: github.actor != 'dependabot[bot]' | |
| uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7.0.0 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| files: ./coverage.xml | |
| fail_ci_if_error: true # optional (default = false) | |
| verbose: true # optional (default = false) | |
| install: | |
| needs: [build] | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| py: ['3.10', '3.11', '3.12', '3.13', '3.14', '3.15'] | |
| os: ['windows-latest', 'ubuntu-24.04', 'macos-latest'] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| persist-credentials: false | |
| - uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0 | |
| with: | |
| python-version: ${{ matrix.py }} | |
| allow-prereleases: true | |
| - run: | | |
| pip install --only-binary :all: --upgrade pip | |
| pip install --only-binary :all: .[dev] | |
| - name: Download wheel artifact | |
| uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 | |
| with: | |
| name: commit-check_wheel | |
| path: dist | |
| - name: Install test | |
| # using a wildcard as filename on Windows requires a bash shell | |
| shell: bash | |
| run: nox -s install |