Skip to content

Commit

Permalink
[feat] add github ci workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
tiankongdeguiji committed Sep 25, 2024
1 parent e478c22 commit b8c9106
Show file tree
Hide file tree
Showing 3 changed files with 66 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/codestyle_ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Code Style CI

on:
pull_request:
types: [opened, reopened, synchronize]
workflow_dispatch:

jobs:
ci-test:
runs-on: tzrec-codestyle-runner
container:
image: mybigpai-public-registry.cn-beijing.cr.aliyuncs.com/easyrec/tzrec-devel:0.5
steps:
- name: FetchCommit ${{ github.event.pull_request.head.sha }}
uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: RunCodeStyleCI
id: run_codestyle_ci
run: |
pip install -r requirements.txt
pre-commit run -a
23 changes: 23 additions & 0 deletions .github/workflows/pytyping_ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: PyTyping CI

on:
pull_request:
types: [opened, reopened, synchronize]
workflow_dispatch:

jobs:
ci-test:
runs-on: tzrec-codestyle-runner
container:
image: mybigpai-public-registry.cn-beijing.cr.aliyuncs.com/easyrec/tzrec-devel:0.5
steps:
- name: FetchCommit ${{ github.event.pull_request.head.sha }}
uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: RunPyTypingCI
id: run_pytyping_ci
run: |
pip install -r requirements.txt
bash scripts/gen_proto.sh
python scripts/pyre_check.py
21 changes: 21 additions & 0 deletions .github/workflows/unittest_ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Unit Test CI

on:
pull_request:
types: [opened, reopened, synchronize]
workflow_dispatch:

jobs:
ci-test:
runs-on: tzrec-runner
container:
image: mybigpai-public-registry.cn-beijing.cr.aliyuncs.com/easyrec/tzrec-devel:0.5
options: --gpus all --ipc host
steps:
- name: FetchCommit ${{ github.event.pull_request.head.sha }}
uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: RunUnitTestCI
id: run_unittest_ci
run: bash scripts/ci_test.sh

0 comments on commit b8c9106

Please sign in to comment.