Bump urllib3 from 2.5.0 to 2.6.3 #14
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: OnPullRequest | |
| on: | |
| pull_request: | |
| permissions: read-all | |
| jobs: | |
| setup: | |
| runs-on: ubuntu-latest | |
| outputs: | |
| runner: ${{ steps.step1.outputs.runner }} | |
| steps: | |
| - name: Check repository | |
| id: step1 | |
| run: | | |
| if [ ${{ github.repository }} == 'intel/trustauthority-client-for-python' ]; then | |
| echo "runner=ubuntu-latest" >> $GITHUB_OUTPUT | |
| else | |
| echo "runner=self-hosted" >> $GITHUB_OUTPUT | |
| fi | |
| security-file-check: | |
| needs: [setup] | |
| runs-on: ${{ needs.setup.outputs.runner }} | |
| steps: | |
| - uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0 | |
| with: | |
| fetch-depth: 0 | |
| - name: Check Security.md file | |
| run: | | |
| if [ ! -f ./SECURITY.md ]; then | |
| echo "Security.md file is missing" | |
| exit 1 | |
| fi | |
| build-test-scan: | |
| needs: [setup] | |
| runs-on: ${{ needs.setup.outputs.runner }} | |
| env: | |
| http_proxy: ${{ secrets.HTTP_PROXY }} | |
| https_proxy: ${{ secrets.HTTPS_PROXY }} | |
| no_proxy: ${{ secrets.NO_PROXY }} | |
| PYTHONPATH: ${{ github.workspace }}:$PYTHONPATH | |
| steps: | |
| - uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0 | |
| with: | |
| fetch-depth: 0 | |
| - name: Setup Python | |
| uses: actions/setup-python@65d7f2d534ac1bc67fcd62888c5f4f3d2cb2b236 # v4.7.1 | |
| with: | |
| python-version: '3.9' | |
| - name: Install Poetry | |
| run: pip install poetry==1.7.1 | |
| - name: Install dependencies via Poetry | |
| run: poetry install | |
| - name: Run UT with Coverage enabled | |
| run: cd test && poetry run coverage run --source ../inteltrustauthorityclient/ --omit="../inteltrustauthorityclient/nvgpu/*,../inteltrustauthorityclient/examples/*,../inteltrustauthorityclient/resources/*" -m unittest discover -p 'test_*.py' | |
| - name: Check coverage percentage | |
| run: | | |
| cd test | |
| coverage_percentage=$(poetry run coverage report --format=total) | |
| if [ $coverage_percentage -lt 80 ]; then | |
| echo "Coverage is less than 80 %: $coverage_percentage %" | |
| exit 1 | |
| else | |
| echo "Coverage is greater than or equal to 80 : $coverage_percentage %" | |
| fi |