|
| 1 | +name: CI |
| 2 | + |
| 3 | +on: |
| 4 | + # No matter for push or pull request events, it would trigger CI for safely saving the source code. |
| 5 | + # For the push event, it only runs building and testing. |
| 6 | + push: |
| 7 | + branches: |
| 8 | + - "master" |
| 9 | + paths: |
| 10 | +# For GitHub Action |
| 11 | + - ".github/workflows/test-ci-scripts.yaml" |
| 12 | +# For source code and test |
| 13 | + - "scripts/ci/**/*.py" |
| 14 | + - "scripts/test/**/*.py" |
| 15 | +# For configurations for test or CI |
| 16 | + - "scripts/pytest.ini" |
| 17 | +# For Python project configuration |
| 18 | + - "scripts/pyproject.toml" |
| 19 | + - "scripts/uv.lock" |
| 20 | + |
| 21 | + # For the push event, in addition to build and test would be run, it would trigger other service to keep the reports |
| 22 | + # or other checking, i.e., record the test report by CodeCov and check the code quality by SonarQube. |
| 23 | + pull_request: |
| 24 | + branches: |
| 25 | + - "master" |
| 26 | + paths: |
| 27 | +# For GitHub Action |
| 28 | + - ".github/workflows/test-ci-scripts.yaml" |
| 29 | +# For source code and test |
| 30 | + - "scripts/ci/**/*.py" |
| 31 | + - "scripts/test/**/*.py" |
| 32 | +# For configurations for test or CI |
| 33 | + - "scripts/pytest.ini" |
| 34 | +# For Python project configuration |
| 35 | + - "scripts/pyproject.toml" |
| 36 | + - "scripts/uv.lock" |
| 37 | + |
| 38 | +jobs: |
| 39 | + run_script-test: |
| 40 | +# name: Run all contract test items |
| 41 | + uses: ./.github/workflows/rw_uv_run_test.yaml@master |
| 42 | + with: |
| 43 | + test_type: ci-script-test |
| 44 | + test_folder: './scripts/test/ci_script_test' |
| 45 | + python-versions: '["3.13"]' |
| 46 | + operating-systems: '["ubuntu-latest", "ubuntu-22.04", "macos-latest", "macos-14"]' |
0 commit comments