diff --git a/.github/workflows/ci-community.yml b/.github/workflows/ci-community.yml index 5188b9d43..472b2cbde 100644 --- a/.github/workflows/ci-community.yml +++ b/.github/workflows/ci-community.yml @@ -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: @@ -24,7 +26,7 @@ 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 @@ -32,7 +34,7 @@ jobs: - 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: @@ -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 }} diff --git a/.github/workflows/ci-core.yml b/.github/workflows/ci-core.yml index 65bb23884..2e903be32 100644 --- a/.github/workflows/ci-core.yml +++ b/.github/workflows/ci-core.yml @@ -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