Skip to content

Commit

Permalink
Fixed monorepo matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
mephenor committed Apr 15, 2024
1 parent dc39502 commit 39c5524
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions .github/workflows/monorepo_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,24 @@ jobs:

- id: set-matrix
run: |
RESULTS=$(python3 ./scripts/affected_services.py)
echo "affected=$(jq -cn --argjson services \
"$RESULTS" '{service: $services}')" >> $GITHUB_OUTPUT
echo "affected=$(python3 ./scripts/affected_services.py)" >> $GITHUB_OUTPUT
test:
needs: check-changes
runs-on: ubuntu-latest
strategy:
matrix: ${{ fromJson(needs.check-changes.outputs.matrix) }}
matrix:
service: ${{ fromJson(needs.check-changes.outputs.matrix) }}
steps:
- uses: actions/checkout@v3
with:
sparse-checkout: |
.github
.lock
.services/${{matrix.service}}
- name: setup
run: pip install --no-deps -r ./lock/requirements-dev.txt
run: pip install --no-deps -r ./lock/requirements-dev.txt && pip install --upgrade ./services/${{matrix.service}}/

- run: echo ${{matrix.service}}
- name: run-tests
- name: run tests for specific service
run: pytest ./services/${{matrix.service}}/

0 comments on commit 39c5524

Please sign in to comment.