-
Notifications
You must be signed in to change notification settings - Fork 334
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[feature]: add support for tf25 py3 test #255
Merged
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
cda40ae
add support for tf25 py3 test
chengmengli06 dce6a5a
add support for tf25 py3 test
chengmengli06 8817a54
fix feature_selection tf25 compat
tiankongdeguiji fc8e0fe
skip multi worker mirror test in high versions as there are bugs in c…
chengmengli06 fc1f231
Merge branch 'add_py37_tf25_unit_test' of https://github.com/alibaba/…
chengmengli06 5bde4eb
[bugfix]: modify bug of tf25. add compact layer_norm layer.
yangxudong f41ab5f
[bugfix]: modify bug of tf25. add compact layer_norm layer.
yangxudong File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,115 @@ | ||
name: CI Build PY3 TF25 | ||
on: | ||
pull_request: | ||
types: [opened, reopened, synchronize] | ||
|
||
jobs: | ||
ci-test: | ||
runs-on: EasyRec-py37-tf25 | ||
defaults: | ||
run: | ||
shell: bash {0} | ||
steps: | ||
- name: FetchCommit ${{ github.event.pull_request.head.sha }} | ||
uses: actions/checkout@v2 | ||
with: | ||
ref: ${{ github.event.pull_request.head.sha }} | ||
submodules: recursive | ||
- name: RunCiTest | ||
id: run_ci_test | ||
env: | ||
TEST_DEVICES: "" | ||
PULL_REQUEST_NUM: ${{ github.event.pull_request.number }} | ||
run: | | ||
source activate tf25_py3 | ||
python git-lfs/git_lfs.py pull | ||
source scripts/ci_test.sh | ||
- name: LabelAndComment | ||
env: | ||
CI_TEST_PASSED: ${{steps.run_ci_test.outputs.ci_test_passed}} | ||
uses: actions/github-script@v5 | ||
with: | ||
script: | | ||
const { CI_TEST_PASSED } = process.env | ||
labels = await github.rest.issues.listLabelsOnIssue({ | ||
issue_number: context.issue.number, | ||
repo:context.repo.repo, | ||
owner:context.repo.owner | ||
}) | ||
console.log('labels.url=' + labels.url) | ||
|
||
labels = labels.data | ||
|
||
var label_names = [] | ||
if (labels != null) { | ||
labels.forEach(tmp_lbl => label_names.push(tmp_lbl.name)) | ||
} | ||
console.log(`ci_test_passed=${CI_TEST_PASSED} labels=${label_names}`); | ||
|
||
var pass_label = null; | ||
if (labels != null) { | ||
pass_label = labels.find(label=>label.name=='ci_py3_tf25_test_passed'); | ||
} | ||
|
||
var fail_label = null; | ||
if (labels != null) { | ||
fail_label = labels.find(label=>label.name=='ci_py3_tf25_test_failed'); | ||
} | ||
|
||
if (pass_label) { | ||
github.rest.issues.removeLabel({ | ||
issue_number: context.issue.number, | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
name: 'ci_py3_tf25_test_passed' | ||
}) | ||
} | ||
|
||
if (fail_label) { | ||
github.rest.issues.removeLabel({ | ||
issue_number: context.issue.number, | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
name: 'ci_py3_tf25_test_failed' | ||
}) | ||
} | ||
|
||
if (CI_TEST_PASSED == 1) { | ||
github.rest.issues.addLabels({ | ||
issue_number: context.issue.number, | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
labels: ['ci_py3_tf25_test_passed'] | ||
}) | ||
|
||
github.rest.issues.createComment({ | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
issue_number: context.issue.number, | ||
body: "CI PY3 TF25 Test Passed" | ||
}) | ||
} else { | ||
github.rest.issues.addLabels({ | ||
issue_number: context.issue.number, | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
labels: ['ci_py3_tf25_test_failed'] | ||
}) | ||
|
||
github.rest.issues.createComment({ | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
issue_number: context.issue.number, | ||
body: "CI PY3 TF25 Test Failed" | ||
}) | ||
} | ||
- name: SignalFail | ||
env: | ||
CI_TEST_PASSED: ${{steps.run_ci_test.outputs.ci_test_passed}} | ||
run: | | ||
echo "CI_TEST_PASSED=${CI_TEST_PASSED}" | ||
if [ $CI_TEST_PASSED -ne 1 ] | ||
then | ||
echo "ci_py3_tf25_test_failed, will exit" | ||
exit 1 | ||
fi |
This file contains 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
为啥不是一步到位,支持 tf 2.9 呢