File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change 6
6
push :
7
7
branches : [ main ]
8
8
paths :
9
- - " modules/**"
9
+ - " testcontainers/**"
10
+ - " !testcontainers/core/**"
10
11
pull_request :
11
12
branches : [ main ]
12
13
paths :
13
- - " modules/**"
14
+ - " testcontainers/**"
15
+ - " !testcontainers/core/**"
14
16
15
17
jobs :
16
18
track-modules :
@@ -24,15 +26,15 @@ jobs:
24
26
id : changed-files
25
27
uses : tj-actions/changed-files@v42
26
28
with :
27
- path : " ./modules "
29
+ path : " ./testcontainers "
28
30
diff_relative : true
29
31
dir_names : true
30
32
dir_names_exclude_current_dir : true
31
33
json : true
32
34
- name : Compute modules from files
33
35
id : compute-changes
34
36
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') )
36
38
echo "computed_modules=$modules"
37
39
echo "computed_modules=$modules" >> $GITHUB_OUTPUT
38
40
outputs :
56
58
- name : Install Python dependencies
57
59
run : poetry install -E ${{ matrix.module }}
58
60
- name : Run tests
59
- run : make modules /${{ matrix.module }}/tests
61
+ run : make tests /${{ matrix.module }}
Original file line number Diff line number Diff line change 27
27
- name : Run twine check
28
28
run : poetry build && poetry run twine check dist/*.tar.gz
29
29
- name : Run tests
30
- run : make core/ tests
30
+ run : make tests/core
You can’t perform that action at this time.
0 commit comments