Skip to content

Commit

Permalink
fix: Fix GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
kshramt committed Mar 21, 2024
1 parent f1b1105 commit 2a1faeb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/ci-community.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,13 @@ on:
push:
branches: [ main ]
paths:
- "modules/**"
- "testcontainers/**"
- "!testcontainers/core/**"
pull_request:
branches: [ main ]
paths:
- "modules/**"
- "testcontainers/**"
- "!testcontainers/core/**"

jobs:
track-modules:
Expand All @@ -24,15 +26,15 @@ jobs:
id: changed-files
uses: tj-actions/changed-files@v42
with:
path: "./modules"
path: "./testcontainers"
diff_relative: true
dir_names: true
dir_names_exclude_current_dir: true
json: true
- name: Compute modules from files
id: compute-changes
run: |
modules=$(echo "${{ steps.changed-files.outputs.all_changed_files }}" | jq '.[] | split("/") | first' | jq -s -c '. | unique')
modules=$(echo "${{ steps.changed-files.outputs.all_changed_files }}" | jq '.[] | split("/") | first' | jq -s -c '[.[] | select(. != "core")] | unique'))
echo "computed_modules=$modules"
echo "computed_modules=$modules" >> $GITHUB_OUTPUT
outputs:
Expand All @@ -56,4 +58,4 @@ jobs:
- name: Install Python dependencies
run: poetry install -E ${{ matrix.module }}
- name: Run tests
run: make modules/${{ matrix.module }}/tests
run: make tests/${{ matrix.module }}
2 changes: 1 addition & 1 deletion .github/workflows/ci-core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ jobs:
- name: Run twine check
run: poetry build && poetry run twine check dist/*.tar.gz
- name: Run tests
run: make core/tests
run: make tests/core

0 comments on commit 2a1faeb

Please sign in to comment.