Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
w-gc committed Jan 23, 2025
1 parent 76a8078 commit ae22eca
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 22 deletions.
2 changes: 2 additions & 0 deletions .circleci/benchmark-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ jobs:
"python3 -m pip install -U pip && \
python3 -m pip install spu && \
cd /home/admin/dev/ && \
python3 -m pip install --upgrade pip --index-url https://mirrors.sustech.edu.cn/pypi/web/simple && \
python3 -m pip config set global.index-url https://mirrors.sustech.edu.cn/pypi/web/simple && \
python3 -m pip install -r requirements-dev.txt && \
export PYTHONPATH="${PWD}:$PYTHONPATH" && \
bash .circleci/run-nn.sh" | tee benchmark_results.log
Expand Down
23 changes: 1 addition & 22 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ parameters:
default: false
run-asan:
type: boolean
default: false
default: true

# Define a job to be invoked later in a workflow.
# See: https://circleci.com/docs/2.0/configuration-reference/#jobs
Expand All @@ -59,27 +59,6 @@ jobs:
command: bash ../devtools/lint-whitespace.sh

workflows:
unittest-workflow:
when:
and:
- not: << pipeline.parameters.run-asan >>
- not: << pipeline.parameters.run-schedule >>
- not: << pipeline.parameters.GHA_Action >>
- not: << pipeline.parameters.GHA_Meta >>
jobs:
- path-filtering/filter:
base-revision: main
config-path: .circleci/continue-config.yml
mapping: |
spu/.* build-and-run true
src/.* build-and-run true
exmaples/.* build-and-run true
bazel/.* build-and-run true
.bazelrc build-and-run true
requirements.txt build-and-run true
requirements-dev.txt build-and-run true
.circleci/continue-config.yml build-and-run true
- lint
benchmark-workflow:
when: << pipeline.parameters.run-schedule >>
jobs:
Expand Down
54 changes: 54 additions & 0 deletions tmp.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
diff --git a/.circleci/benchmark-config.yml b/.circleci/benchmark-config.yml
index 2cacdf8..49174d0 100644
--- a/.circleci/benchmark-config.yml
+++ b/.circleci/benchmark-config.yml
@@ -47,6 +47,8 @@ jobs:
"python3 -m pip install -U pip && \
python3 -m pip install spu && \
cd /home/admin/dev/ && \
+ python3 -m pip install --upgrade pip --index-url https://mirrors.sustech.edu.cn/pypi/web/simple && \
+ python3 -m pip config set global.index-url https://mirrors.sustech.edu.cn/pypi/web/simple && \
python3 -m pip install -r requirements-dev.txt && \
export PYTHONPATH="${PWD}:$PYTHONPATH" && \
bash .circleci/run-nn.sh" | tee benchmark_results.log
diff --git a/.circleci/config.yml b/.circleci/config.yml
index 54d0a09..20d9e59 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -38,7 +38,7 @@ parameters:
default: false
run-asan:
type: boolean
- default: false
+ default: true

# Define a job to be invoked later in a workflow.
# See: https://circleci.com/docs/2.0/configuration-reference/#jobs
@@ -59,27 +59,6 @@ jobs:
command: bash ../devtools/lint-whitespace.sh

workflows:
- unittest-workflow:
- when:
- and:
- - not: << pipeline.parameters.run-asan >>
- - not: << pipeline.parameters.run-schedule >>
- - not: << pipeline.parameters.GHA_Action >>
- - not: << pipeline.parameters.GHA_Meta >>
- jobs:
- - path-filtering/filter:
- base-revision: main
- config-path: .circleci/continue-config.yml
- mapping: |
- spu/.* build-and-run true
- src/.* build-and-run true
- exmaples/.* build-and-run true
- bazel/.* build-and-run true
- .bazelrc build-and-run true
- requirements.txt build-and-run true
- requirements-dev.txt build-and-run true
- .circleci/continue-config.yml build-and-run true
- - lint
benchmark-workflow:
when: << pipeline.parameters.run-schedule >>
jobs:

0 comments on commit ae22eca

Please sign in to comment.