Skip to content
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

Rename workflow to code check. #1415

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
3 changes: 2 additions & 1 deletion .github/actions/dlrover-python-test/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@ runs:
- "sh scripts/ci_install.sh && python -m grpc_tools.protoc -I. \
dlrover/proto/*.proto --python_out=. --grpc_python_out=. \
&& ROLE_NAME=dlrover-trainer \
python -m pytest --durations=10 dlrover/python/tests dlrover/trainer/tests \
python -m pytest --cov --junitxml=junit.xml -o junit_family=legacy --durations=10 \
dlrover/python/tests/test_job_manager.py dlrover/trainer/tests/torch/elastic_test.py \
--cov-report xml --cov=dlrover "
9 changes: 5 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
name: main test for the project
name: code check

on:
pull_request:
Expand Down Expand Up @@ -32,10 +32,11 @@ jobs:
# This step references the directory that contains the action.
- name: RUN pytest
uses: ./.github/actions/dlrover-python-test
- name: Upload coverage reports to Codecov
uses: codecov/[email protected]
- name: Upload test results to Codecov
if: ${{ !cancelled() }}
uses: codecov/test-results-action@v1
with:
token: 043586e5-68b8-4588-9bf4-c333f2692345
token: 3b0503fb-7c5e-4486-9ddf-2903deb77067
slug: intelligent-machine-learning/dlrover
operator-test:
runs-on: ubuntu-latest
Expand Down
Loading