Skip to content

Run all tests for testing purposes #6

Run all tests for testing purposes

Run all tests for testing purposes #6

Workflow file for this run

name: Monorepo Tests
on: push
env:
IFRS_CONFIG_YAML: ./services/ifrs/.dev/.dev_config.yaml
IRS_CONFIG_YAML: ./services/irs/.dev/.dev_config.yaml
PCS_CONFIG_YAML: ./services/pcs/.dev/.dev_config.yaml
jobs:
check-changes:
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.set-matrix.outputs.affected }}
steps:
- uses: actions/checkout@v3
- id: install-typer
run: pip install typer>=0.9.0
- id: set-matrix
run: |
echo "affected=$(python3 ./scripts/affected_services.py)" >> $GITHUB_OUTPUT
test:
needs: check-changes
runs-on: ubuntu-latest
strategy:
matrix:
service: ${{ fromJson(needs.check-changes.outputs.matrix) }}
steps:
- uses: actions/checkout@v3
with:
sparse-checkout: |
.github
.lock
.services/${{matrix.service}}
fetch-depth: 2
- name: update pip
run: python -m pip install --upgrade pip
- name: install dependencies
run: pip install --no-deps -r ./lock/requirements-dev.txt && pip install --no-deps -e ./services/${{matrix.service}}
- name: run tests for specific service
run: pytest ./services/${{matrix.service}}