chore: import upstream snapshot with attribution
build-docs / deploy (push) Has been cancelled
Check Markdown links / markdown-link-check (push) Has been cancelled
Pytest / test (3.11) (push) Has been cancelled
Pytest / test (3.12) (push) Has been cancelled

This commit is contained in:
wehub-resource-sync
2026-07-13 13:25:42 +08:00
commit 4e0f4422d0
388 changed files with 30544 additions and 0 deletions
+52
View File
@@ -0,0 +1,52 @@
name: build-docs
on:
push:
branches:
- main
- "build-docs-*"
pull_request:
branches:
- main
# Prevent concurrent runs that could conflict when pushing to gh-pages
concurrency:
group: build-docs-${{ github.ref }}
cancel-in-progress: false
permissions:
contents: write
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
with:
fetch-depth: 0
- name: Configure Git Credentials
run: |
git config user.name github-actions[bot]
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
- uses: actions/setup-python@v6
with:
python-version: 3.x
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
- uses: actions/cache@v6
with:
key: mkdocs-material-${{ env.cache_id }}
path: .cache
restore-keys: |
mkdocs-material-
- name: Install uv
run: |
curl -LsSf https://astral.sh/uv/install.sh | sh
- run: uv pip install --python ${Python_ROOT_DIR} '.[dev]'
- name: Build Documentation
if: github.ref != 'refs/heads/main' && github.ref != 'refs/heads/v0.7'
run: mkdocs build
- name: Deploy on 0.7
if: github.ref == 'refs/heads/v0.7'
run: mike deploy --push 0.7
- name: Build + Deploy Documentation
if: github.ref == 'refs/heads/main'
run: mike deploy --push 1.0 latest
@@ -0,0 +1,20 @@
name: Check Markdown links
on:
workflow_dispatch:
push:
branches:
- main
- bala/fix_broken_links
schedule:
- cron: "0 0 1 * *"
jobs:
markdown-link-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: tcort/github-action-markdown-link-check@v1
with:
use-quiet-mode: 'yes'
use-verbose-mode: 'yes'
+13
View File
@@ -0,0 +1,13 @@
on: [pull_request]
name: Check Markdown links in modified files
jobs:
markdown-link-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: tcort/github-action-markdown-link-check@v1
with:
use-quiet-mode: 'yes'
use-verbose-mode: 'yes'
check-modified-files-only: 'yes'
base-branch: 'main'
+75
View File
@@ -0,0 +1,75 @@
name: Pytest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
on:
push:
branches:
- main
- prepare-public2
paths-ignore:
- 'docs/**'
- '.cursor/**'
- 'README.md'
- 'mkdocs.yml'
pull_request:
branches:
- main
- prepare-public2
paths-ignore:
- 'docs/**'
- 'README.md'
- 'mkdocs.yml'
# Not possible to test windows capability:
# https://github.com/orgs/community/discussions/25491
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.11", "3.12"]
defaults:
run:
shell: bash -l {0}
steps:
- name: Checkout code
uses: actions/checkout@v7
- uses: actions/setup-python@v6
with:
python-version: "${{ matrix.python-version }}"
- name: Install uv
run: |
curl -LsSf https://astral.sh/uv/install.sh | sh
- name: Install dependencies
run: |
uv pip install --python ${Python_ROOT_DIR} -e '.[dev]'
- name: Check available files
run: |
find .
- name: Run pytest
uses: sjvrijn/pytest-last-failed@v2
with:
pytest-args: '--junitxml=test-results.xml --cov -n auto -s'
- name: Upload logs & trajectories
uses: actions/upload-artifact@v7
if: always()
with:
name: trajectories-py${{ matrix.python-version }}
path: |
trajectories/runner/
- name: Explicitly convert coverage to xml
if: matrix.python-version == '3.11'
run: coverage xml
- name: Upload coverage reports to Codecov
if: matrix.python-version == '3.11'
uses: codecov/codecov-action@v7.0.0
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: SWE-agent/SWE-agent
- name: Upload test results to Codecov
if: matrix.python-version == '3.11'
uses: codecov/test-results-action@v1
with:
files: test-results.xml