Bump the dependencies group across 1 directory with 10 updates #209
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 flake8 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.' | |
RunFlake8: | |
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 flake8 alias | |
run: alias flake8=/opt/hostedtoolcache/Python/${{ needs.SetGlobalConstants.outputs.PYTHON_VERSION }}/x64/bin/flake8 | |
- name: Run the flake8 command | |
run: python ./scripts/run_flake8.py |