diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 84e73c0f21..bb0af9ffec 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -85,3 +85,36 @@ jobs: push_rolling: true repo: ${{ vars.CODECOV_IMAGE_V2 || 'codecov/self-hosted-api' }} cache_file: "uv.lock" + + upload-overwatch: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Install Static Analysis Tools + run: | + pip install mypy==1.15.0 + pip install ruff==0.3.3 + - name: Install Build Dependencies + run: | + sudo apt-get update + # Install libssl1.1 from Ubuntu 20.04 repositories + wget http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1f-1ubuntu2_amd64.deb + sudo dpkg -i libssl1.1_1.1.1f-1ubuntu2_amd64.deb + - name: Install Overwatch CLI + run: | + curl -o overwatch-cli https://overwatch.codecov.dev/linux/cli + chmod +x overwatch-cli + - name: Print Current Working Directory + run: pwd + - name: List Contents of Current Working Directory + run: ls -la + - name: List Directories Under Root + run: ls -d /*/ + - name: Run Overwatch CLI + run: | + ./overwatch-cli \ + --auth-token ${{ secrets.SENTRY_AUTH_TOKEN }} \ + --organization-slug codecov \ + python \ + --python-path $(which python3) \ + --tool mypy \ No newline at end of file diff --git a/services/components.py b/services/components.py index 318e22e01b..08f352ed93 100644 --- a/services/components.py +++ b/services/components.py @@ -31,6 +31,9 @@ def component_filtered_report( """ Filter a report such that the totals, etc. are only pertaining to the given component. """ + + report: Report | None = report + flags, paths = [], [] for component in components: flags.extend(component.get_matching_flags(report.flags.keys()))