Skip to content

Commit 7d0c112

Browse files
authored
Merge pull request #482 from Chisanan232/develop/ci-cd
[CU-86errvzug] Improve the CI workflows to be clear and more maintainable
2 parents e01102c + a9d661b commit 7d0c112

2 files changed

Lines changed: 39 additions & 55 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 38 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -6,65 +6,50 @@ on:
66
push:
77
branches:
88
- "master"
9-
- "develop/**"
10-
paths-ignore:
11-
# For GitHub dependency bot
12-
- ".github/dependabot.yaml"
13-
- ".github/workflows/bot-pr.yaml"
14-
- ".github/workflows/bot-ci.yaml"
15-
- "scripts/ci/chk_pr_list.sh"
16-
# For documentation
17-
- ".github/ISSUE_TEMPLATE/**"
18-
- ".github/workflows/documentation.yaml"
19-
- ".cache/**/*.json"
20-
- "docs/**"
21-
- "**/*.md"
22-
- "mkdocs.yml"
23-
- "README.md"
24-
# For Docker feature
25-
- ".github/workflows/docker.yaml"
26-
- "scripts/ci/**-docker-**.sh"
27-
- "scripts/docker/**"
28-
- "Dockerfile"
29-
- "README-DOCKER.md"
30-
# Others
31-
- ".gitcommitrules"
32-
- ".gitignore"
33-
- ".pre-commit-config.yaml"
34-
- ".pylintrc"
9+
paths:
10+
# For GitHub Action
11+
- ".github/workflows/**ci.yaml"
12+
- ".github/workflows/rw_build_and_test.yaml"
13+
- ".github/workflows/rw_poetry_run_test_with_multi_py_versions.yaml"
14+
# For source code and test
15+
- "fake_api_server/**/*.py"
16+
- "!**/__pkg_info__.py"
17+
- "test/**/*.py"
18+
# For shell script for CI
19+
- "scripts/run_all_tests.sh"
20+
# For configurations for test or CI
21+
- ".coveragerc"
22+
- "codecov.yml"
23+
- "pytest.ini"
24+
- "sonar-project.properties"
25+
# For Python project configuration
26+
- "pyproject.toml"
27+
- "poetry.lock"
3528

3629
# For the push event, in addition to build and test would be run, it would trigger other service to keep the reports
3730
# or other checking, i.e., record the test report by CodeCov and check the code quality by SonarQube.
3831
pull_request:
3932
branches:
4033
- "master"
41-
- "develop/**"
42-
paths-ignore:
43-
# For GitHub dependency bot
44-
- ".github/dependabot.yaml"
45-
- ".github/workflows/bot-pr.yaml"
46-
- ".github/workflows/bot-ci.yaml"
47-
- "scripts/ci/chk_pr_list.sh"
48-
# For documentation
49-
- ".github/ISSUE_TEMPLATE/**"
50-
- ".github/workflows/documentation.yaml"
51-
- ".cache/**/*.json"
52-
- "docs/**"
53-
- "**/*.md"
54-
- "mkdocs.yml"
55-
- "README.md"
56-
# For Docker feature
57-
- ".github/workflows/docker.yaml"
58-
- "scripts/ci/**-docker-**.sh"
59-
- "scripts/docker/**"
60-
- "Dockerfile"
61-
- "README-DOCKER.md"
62-
# Others
63-
- ".gitcommitrules"
64-
- ".gitignore"
65-
- ".pre-commit-config.yaml"
66-
- ".pylintrc"
67-
- "LICENSE"
34+
paths:
35+
# For GitHub Action
36+
- ".github/workflows/**ci.yaml"
37+
- ".github/workflows/rw_build_and_test.yaml"
38+
- ".github/workflows/rw_poetry_run_test_with_multi_py_versions.yaml"
39+
# For source code and test
40+
- "fake_api_server/**/*.py"
41+
- "!**/__pkg_info__.py"
42+
- "test/**/*.py"
43+
# For shell script for CI
44+
- "scripts/run_all_tests.sh"
45+
# For configurations for test or CI
46+
- ".coveragerc"
47+
- "codecov.yml"
48+
- "pytest.ini"
49+
- "sonar-project.properties"
50+
# For Python project configuration
51+
- "pyproject.toml"
52+
- "poetry.lock"
6853

6954
jobs:
7055
build-and-test:

.github/workflows/documentation.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ on:
1111
- ".github/workflows/documentation.yaml"
1212
- "scripts/ci/**documentation**.sh"
1313
# Doc - Content
14-
- "docs/**"
15-
- "**.*.md"
14+
- "docs/**.*.md"
1615
# Doc - MkDoc config
1716
- "mkdocs.yml"
1817
# Python source code package info

0 commit comments

Comments
 (0)