-
Notifications
You must be signed in to change notification settings - Fork 2.8k
[GHA] Switch code style checks to use Docker environment #32342
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
[GHA] Switch code style checks to use Docker environment #32342
Conversation
…-use-Docker-environment
…-use-Docker-environment
…-use-Docker-environment
…-use-Docker-environment
…-use-Docker-environment
…-use-Docker-environment
…-use-Docker-environment
…-use-Docker-environment
python3 get-pip.py --no-cache-dir pip==${PIP_VERSION} && \ | ||
rm -f get-pip.py | ||
|
||
ADD cmake/developer_package/ncc_naming_style/requirements_dev.txt /requirements_dev.txt |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Generally we install Python requirements in runtime (since we need to ensure the freshest state of requirements, including those that don't include direct requirement file change, e.g. when a new version of a non-pinned module is released on PyPi). If we're installing it inside the docker - only direct file change will cause image rebuild, which is not enough
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why do we need this step then?
image: ${{ fromJSON(needs.docker.outputs.images).ov_test.ubuntu_24_04_x64_code_style }} | ||
volumes: | ||
- /mount:/mount | ||
options: --user 1001 # We use standard github-actions user inside container to avoid permission issues after checkout |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we move it inside the docker image configuration?
runs-on: ubuntu-22.04 | ||
if: ${{ github.repository_owner == 'openvinotoolkit' }} | ||
needs: Docker | ||
runs-on: aks-linux-4-cores-16gb |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not the medium runner?
Tickets: