Skip to content

Commit 9e65808

Browse files
Update CI workflows and Poetry version
Renamed check_diffs.yml to CI.yml and refactored workflow to remove dynamic directory detection, now explicitly linting and testing 'libs/oci' and 'libs/oracledb'. Updated Poetry version to 2.2.1 in all workflow files for consistency and added workflow_dispatch for manual CI triggers.
1 parent 1d4a93c commit 9e65808

File tree

4 files changed

+16
-29
lines changed

4 files changed

+16
-29
lines changed

.github/workflows/check_diffs.yml renamed to .github/workflows/CI.yml

Lines changed: 13 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
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

1920
env:
20-
POETRY_VERSION: "1.7.1"
21+
POETRY_VERSION: "2.2.1"
2122

2223
jobs:
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-
uses: Ana06/[email protected]
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

.github/workflows/_compile_integration_test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
description: "From which folder this pipeline executes"
1010

1111
env:
12-
POETRY_VERSION: "1.7.1"
12+
POETRY_VERSION: "2.2.1"
1313

1414
jobs:
1515
build:

.github/workflows/_lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
description: "From which folder this pipeline executes"
1010

1111
env:
12-
POETRY_VERSION: "1.7.1"
12+
POETRY_VERSION: "2.2.1"
1313
WORKDIR: ${{ inputs.working-directory == '' && '.' || inputs.working-directory }}
1414

1515
# This env var allows us to get inline annotations when ruff has complaints.

.github/workflows/_test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
description: "From which folder this pipeline executes"
1010

1111
env:
12-
POETRY_VERSION: "1.7.1"
12+
POETRY_VERSION: "2.2.1"
1313

1414
jobs:
1515
build:

0 commit comments

Comments
 (0)