Bump the dependencies group across 1 directory with 2 updates #217
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: Run the mypy command when a pull request is created or updated | |
on: | |
pull_request: | |
types: [opened, synchronize] | |
jobs: | |
SetGlobalConstants: | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
outputs: | |
PYTHON_VERSION: 3.11.1 | |
steps: | |
- run: echo 'Setting constans.' | |
RunMypy: | |
needs: SetGlobalConstants | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: CreateCache | |
uses: ./.github/actions/create_env_cache | |
with: | |
python-version: ${{ needs.SetGlobalConstants.outputs.PYTHON_VERSION }} | |
- name: Setup the Python dependencies | |
uses: ./.github/actions/setup_py_dependencies | |
with: | |
python-version: ${{ needs.SetGlobalConstants.outputs.PYTHON_VERSION }} | |
- name: Set the mypy alias | |
run: alias mypy=/opt/hostedtoolcache/Python/${{ needs.SetGlobalConstants.outputs.PYTHON_VERSION }}/x64/bin/mypy | |
- name: Run the mypy command | |
run: python ./scripts/run_mypy.py |