55 push :
66 branches : [main]
77 pull_request :
8+ workflow_dispatch : # Allows manual triggering from GitHub UI
89
910# If another push to the same PR or branch happens while this workflow is still running,
1011# cancel the earlier run in favor of the next run.
@@ -17,62 +18,48 @@ concurrency:
1718 cancel-in-progress : true
1819
1920env :
20- POETRY_VERSION : " 1.7 .1"
21+ POETRY_VERSION : " 2.2 .1"
2122
2223jobs :
23- build :
24- runs-on : ubuntu-latest
25- steps :
26- - uses : actions/checkout@v4
27- - uses : actions/setup-python@v5
28- with :
29- python-version : ' 3.10'
30- - id : files
31- 32- - id : set-matrix
33- run : |
34- python .github/scripts/check_diff.py ${{ steps.files.outputs.all }} >> $GITHUB_OUTPUT
35- outputs :
36- dirs-to-lint : ${{ steps.set-matrix.outputs.dirs-to-lint }}
37- dirs-to-test : ${{ steps.set-matrix.outputs.dirs-to-test }}
3824 lint :
3925 name : cd ${{ matrix.working-directory }}
40- needs : [ build ]
41- if : ${{ needs.build.outputs.dirs-to-lint != '[]' }}
4226 strategy :
4327 matrix :
44- working-directory : ${{ fromJson(needs.build.outputs.dirs-to-lint) }}
28+ working-directory :
29+ - " libs/oci"
30+ - " libs/oracledb"
4531 uses : ./.github/workflows/_lint.yml
4632 with :
4733 working-directory : ${{ matrix.working-directory }}
4834 secrets : inherit
4935
5036 test :
5137 name : cd ${{ matrix.working-directory }}
52- needs : [ build ]
53- if : ${{ needs.build.outputs.dirs-to-test != '[]' }}
5438 strategy :
5539 matrix :
56- working-directory : ${{ fromJson(needs.build.outputs.dirs-to-test) }}
40+ working-directory :
41+ - " libs/oci"
42+ - " libs/oracledb"
5743 uses : ./.github/workflows/_test.yml
5844 with :
5945 working-directory : ${{ matrix.working-directory }}
6046 secrets : inherit
6147
6248 compile-integration-tests :
6349 name : cd ${{ matrix.working-directory }}
64- needs : [ build ]
65- if : ${{ needs.build.outputs.dirs-to-test != '[]' }}
6650 strategy :
6751 matrix :
68- working-directory : ${{ fromJson(needs.build.outputs.dirs-to-test) }}
52+ working-directory :
53+ - " libs/oci"
54+ - " libs/oracledb"
6955 uses : ./.github/workflows/_compile_integration_test.yml
7056 with :
7157 working-directory : ${{ matrix.working-directory }}
7258 secrets : inherit
59+
7360 ci_success :
7461 name : " CI Success"
75- needs : [build, lint, test, compile-integration-tests]
62+ needs : [lint, test, compile-integration-tests]
7663 if : |
7764 always()
7865 runs-on : ubuntu-latest
0 commit comments