File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : ' Cleanup DCMI Environment'
2+ description : ' Clean up build artifacts and temporary files'
3+ runs :
4+ using : " composite"
5+ steps :
6+ - name : Clean up
7+ shell : bash
8+ run : |
9+ yes | make clean || true
Original file line number Diff line number Diff line change 1+ name : ' Setup DCMI Environment'
2+ description : ' Setup Python 3.13.7 and print system information'
3+ runs :
4+ using : " composite"
5+ steps :
6+ - name : Set up Python 3.13.7
7+ uses : actions/setup-python@v5
8+ with :
9+ python-version : ' 3.13.7'
10+
11+ - name : Print system information
12+ shell : bash
13+ run : |
14+ echo "Running on Linux"
15+ uname -a
16+ python --version
17+
18+ - name : Setup virtual environment
19+ shell : bash
20+ run : |
21+ make setup-venv VENV_RELEASE=true VENV_RECREATE=true
Original file line number Diff line number Diff line change 1+ name : Check Format Pipeline
2+
3+ on :
4+ push :
5+ branches :
6+ - master
7+ pull_request :
8+ branches :
9+ - master
10+
11+ jobs :
12+ check-format :
13+ runs-on : ubuntu-latest
14+
15+ steps :
16+ - name : Checkout repository
17+ uses : actions/checkout@v4
18+ with :
19+ fetch-depth : 0
20+ submodules : true
21+
22+ - name : Setup DCMI Environment
23+ uses : ./.github/workflow-actions/setup-dcmi
24+
25+ - name : Run ruff for format checking
26+ run : |
27+ make format-check
28+
29+ - name : Cleanup DCMI Environment
30+ uses : ./.github/workflow-actions/cleanup-dcmi
Original file line number Diff line number Diff line change 1+ name : Check License Pipeline
2+
3+ on :
4+ pull_request :
5+ branches :
6+ - master
7+ paths-ignore :
8+ - ' pyproject.toml'
9+ - ' NOTICE'
10+ - ' scripts/analyze_dependencies.py'
11+ push :
12+ branches :
13+ - master
14+
15+ jobs :
16+ check-license :
17+ runs-on : ubuntu-latest
18+
19+ steps :
20+ - name : Checkout repository
21+ uses : actions/checkout@v4
22+ with :
23+ fetch-depth : 0
24+ submodules : true
25+
26+ - name : Setup DCMI Environment
27+ uses : ./.github/workflow-actions/setup-dcmi
28+
29+ - name : Run dependency analysis and generate NOTICE
30+ run : |
31+ make thirdpartycheck
32+
33+ - name : Compare generated NOTICE with remote master
34+ run : |
35+ # Ensure local copy of origin/master is up to date
36+ git fetch origin master
37+
38+ # Compare the freshly generated file on disk with the blob from origin/master
39+ # Using --no-index to compare a process substitution stream with a physical file
40+ if git diff --no-index --exit-code <(git show origin/master:NOTICE) NOTICE > /dev/null 2>&1; then
41+ echo "✓ The generated NOTICE matches the current remote master."
42+ else
43+ echo "::error::NOTICE mismatch detected against master!"
44+ echo "The generated NOTICE is different from the one on origin/master."
45+ echo ""
46+ echo "Detailed Differences:"
47+
48+ # Display the actual diff for debugging purposes
49+ git diff --no-index <(git show origin/master:NOTICE) NOTICE
50+
51+ # Fail the build
52+ exit 1
53+ fi
54+
55+ - name : Cleanup DCMI Environment
56+ uses : ./.github/workflow-actions/cleanup-dcmi
Original file line number Diff line number Diff line change 1+ name : Test Coverage Pipeline
2+
3+ on :
4+ push :
5+ branches :
6+ - master
7+ pull_request :
8+ branches :
9+ - master
10+
11+ jobs :
12+ test-coverage :
13+ runs-on : ubuntu-latest
14+
15+ steps :
16+ - name : Checkout repository
17+ uses : actions/checkout@v4
18+ with :
19+ fetch-depth : 0
20+ submodules : true
21+
22+ - name : Setup DCMI Environment
23+ uses : ./.github/workflow-actions/setup-dcmi
24+
25+ - name : Run coverage tests
26+ run : |
27+ make test-coverage
28+
29+ # - name: Upload coverage report
30+ # if: always()
31+ # uses: actions/upload-artifact@v4
32+ # with:
33+ # name: coverage-report
34+ # path: htmlcov/
35+ # retention-days: 30
36+
37+ - name : Cleanup DCMI Environment
38+ uses : ./.github/workflow-actions/cleanup-dcmi
Original file line number Diff line number Diff line change 1+ name : Test Examples Pipeline
2+
3+ on :
4+ push :
5+ branches :
6+ - master
7+ pull_request :
8+ branches :
9+ - master
10+
11+ jobs :
12+ test-examples :
13+ runs-on : ubuntu-latest
14+
15+ steps :
16+ - name : Checkout repository
17+ uses : actions/checkout@v4
18+ with :
19+ fetch-depth : 0
20+ submodules : true
21+
22+ - name : Setup DCMI Environment
23+ uses : ./.github/workflow-actions/setup-dcmi
24+
25+ - name : Run example tests
26+ run : |
27+ make test-examples
28+
29+ - name : Cleanup DCMI Environment
30+ uses : ./.github/workflow-actions/cleanup-dcmi
Original file line number Diff line number Diff line change 1+ name : Test Requirements Pipeline
2+
3+ on :
4+ push :
5+ branches :
6+ - master
7+ pull_request :
8+ branches :
9+ - master
10+
11+ jobs :
12+ test-requirements :
13+ runs-on : ubuntu-latest
14+
15+ steps :
16+ - name : Checkout repository
17+ uses : actions/checkout@v4
18+ with :
19+ fetch-depth : 0
20+ submodules : true
21+
22+ - name : Setup DCMI Environment
23+ uses : ./.github/workflow-actions/setup-dcmi
24+
25+ - name : Run requirements tests
26+ run : |
27+ make test-requirements
28+
29+ - name : Cleanup DCMI Environment
30+ uses : ./.github/workflow-actions/cleanup-dcmi
Original file line number Diff line number Diff line change @@ -49,9 +49,6 @@ MIT License:
4949
5050MIT License License:
5151------------------------------------------------------------------------------
52- * colorlog 6.9.0
53- URL: https://github.com/borntyping/python-colorlog
54-
5552 * pipdeptree 2.23.4
5653 URL: https://github.com/tox-dev/pipdeptree
5754
You can’t perform that action at this time.
0 commit comments