diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 000000000..f8577d5b0 --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,32 @@ +name: CI +on: + push: + branches: + - main + tags: + - '[0-9]+.[0-9]+.[0-9]+' + - '[0-9]+.[0-9]+.[0-9]+a[0-9]+' + - '[0-9]+.[0-9]+.[0-9]+b[0-9]+' + pull_request: + issue_comment: + types: + - created + - edited + workflow_dispatch: + release: + types: + - published +jobs: + test: + name: Test + if: ${{ github.event_name == 'push' || github.event_name == 'pull_request' || github.ref_name == 'main' }} + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v5.0.0 + - name: Test + uses: AlphaSphereDotAI/helpr_action@test + with: + is_test: true + test_code: true + linter: lint diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index f1cbd6a5e..b1e2724d3 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -21,32 +21,13 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - - name: Install uv - uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0 + - name: Setup Devenv + uses: AlphaSphereDotAI/helpr_action/ci/setup/devenv@v0.0.63 + - name: Run dependency compatibility check + uses: AlphaSphereDotAI/helpr_action/ci/testing/dependency_compatibility@main with: - enable-cache: true - activate-environment: true - - name: Install the project - id: dependency_check - run: uv sync --frozen --no-install-project - - name: Job Summary - uses: jazanne/job-summary-action@690eb386a0b86fe4da7c6f0e543e61330ff09f06 # v1.0.0 - if: success() || failure() - with: - summary: |- - ## Dependency Compatibility Check - - **Status**: ${{ steps.dependency_check.outcome == 'success' && ':white_check_mark:' || ':x:' }} - - name: Show Dependency Tree - if: steps.dependency_check.outcome == 'success' - run: | - echo "## Dependency Tree" >> $GITHUB_STEP_SUMMARY - echo "
" >> $GITHUB_STEP_SUMMARY - echo " Dependency Tree " >> $GITHUB_STEP_SUMMARY - echo "" >> $GITHUB_STEP_SUMMARY - echo '```' >> $GITHUB_STEP_SUMMARY - echo "$(uv tree --show-sizes)" >> $GITHUB_STEP_SUMMARY - echo '```' >> $GITHUB_STEP_SUMMARY - echo "
" >> $GITHUB_STEP_SUMMARY + tool: uv + shell: devenv shell bash -- -e {0} lint: name: Lint permissions: