Fix setup of migration target for pre-check #52
Workflow file for this run
This file contains hidden or 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: CI-Coding-Format-Applied | |
| on: [push] | |
| jobs: | |
| unit_tests: | |
| name: Check if python black coding format was applied | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| python-version: ["3.11", "3.13"] | |
| os: [ubuntu-latest] | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Python${{ matrix.python-version }} | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install Poetry | |
| run: | | |
| python -m pip install --upgrade pip | |
| python -m pip install poetry | |
| - name: Run black | |
| run: | | |
| make black | |
| git diff --no-ext-diff --quiet --exit-code || echo "Coding format not applied, please run 'make black' and commit the result" | |
| env: | |
| PY_VER: ${{ matrix.python-version }} |