Skip to content

Commit 50c70fa

Browse files
committed
fix: Fix GitHub Actions
1 parent 8c57f7a commit 50c70fa

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

.github/workflows/ci-community.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,13 @@ on:
66
push:
77
branches: [ main ]
88
paths:
9-
- "modules/**"
9+
- "testcontainers/**"
10+
- "!testcontainers/core/**"
1011
pull_request:
1112
branches: [ main ]
1213
paths:
13-
- "modules/**"
14+
- "testcontainers/**"
15+
- "!testcontainers/core/**"
1416

1517
jobs:
1618
track-modules:
@@ -24,15 +26,15 @@ jobs:
2426
id: changed-files
2527
uses: tj-actions/changed-files@v42
2628
with:
27-
path: "./modules"
29+
path: "./testcontainers"
2830
diff_relative: true
2931
dir_names: true
3032
dir_names_exclude_current_dir: true
3133
json: true
3234
- name: Compute modules from files
3335
id: compute-changes
3436
run: |
35-
modules=$(echo "${{ steps.changed-files.outputs.all_changed_files }}" | jq '.[] | split("/") | first' | jq -s -c '. | unique')
37+
modules=$(echo "${{ steps.changed-files.outputs.all_changed_files }}" | jq '.[] | split("/") | first' | jq -s -c '[.[] | select(. != "core")] | unique'))
3638
echo "computed_modules=$modules"
3739
echo "computed_modules=$modules" >> $GITHUB_OUTPUT
3840
outputs:
@@ -56,4 +58,4 @@ jobs:
5658
- name: Install Python dependencies
5759
run: poetry install -E ${{ matrix.module }}
5860
- name: Run tests
59-
run: make modules/${{ matrix.module }}/tests
61+
run: make tests/${{ matrix.module }}

.github/workflows/ci-core.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,4 @@ jobs:
2727
- name: Run twine check
2828
run: poetry build && poetry run twine check dist/*.tar.gz
2929
- name: Run tests
30-
run: make core/tests
30+
run: make tests/core

0 commit comments

Comments
 (0)