Refactored service registry creation in core tests #71
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: terrarium_check | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
on: | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
pytest: | |
runs-on: [ self-hosted, linux ] | |
container: | |
image: "python:3.11.0" | |
strategy: | |
fail-fast: false | |
matrix: | |
value: | |
- bi_ci | |
- dl_repmanager | |
name: "π[pytest] ${{ matrix.value }}" | |
steps: | |
- name: 'Cleanup build folder' | |
run: | | |
rm -rf ./* || true | |
rm -rf ./.??* || true | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Setup common tools | |
run: pip install --no-input poetry | |
- name: Install dependencies | |
run: | | |
cd "terrarium/${{ matrix.value }}" | |
poetry -v install --with pytest --without mypy | |
- name: Pytest | |
run: | | |
cd "terrarium/${{ matrix.value }}" | |
poetry run pytest . | |
mypy: | |
runs-on: [ self-hosted, linux ] | |
container: | |
image: "python:3.11.0" | |
strategy: | |
fail-fast: false | |
matrix: | |
value: | |
- bi_ci | |
- dl_repmanager | |
name: "π[mypy] ${{ matrix.value }}" | |
steps: | |
- name: 'Cleanup build folder' | |
run: | | |
rm -rf ./* || true | |
rm -rf ./.??* || true | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Setup common tools | |
run: pip install --no-input poetry | |
- name: Install dependencies | |
run: | | |
cd "terrarium/${{ matrix.value }}" | |
poetry -v install --with mypy --without pytest | |
- name: Mypy | |
run: | | |
cd "terrarium/${{ matrix.value }}" | |
poetry run mypy . |