Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ on:
branches:
- main

workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
Expand Down
49 changes: 49 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Check File Changes

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
check_changes:
runs-on: ubuntu-latest
outputs:
changed: ${{ steps.filter.outputs.any_changed }}
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Filter changed files
id: filter
uses: dorny/paths-filter@v2
with:
# 定义一个 filter group,把所有关心的文件放在同一组
filters: |
any_changed:
- 'lazyllm/launcher.py'
- 'lazyllm/components/deploy/**/*.py'
- 'lazyllm/module/llms/trainablemodule.py'

get_changed_env:
runs-on: ubuntu-latest
needs: check_changes
steps:
- run: |
echo "IF_CHANGED=${{ needs.check_changes.outputs.changed }}" >> $GITHUB_ENV

- name: test
run: |
cat $GITHUB_ENV
if [ "$IF_CHANGED" = "true" ]; then
echo "目标文件有变化"
else
echo "目标文件没有变化"
fi


1 change: 0 additions & 1 deletion lazyllm/module/llms/trainablemodule.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import copy
import uuid
import re
import requests
import yaml
from deepdiff import DeepDiff

Expand Down
Loading