Skip to content

Bump codecov/codecov-action from 5.5.3 to 6.0.0 #4647

Bump codecov/codecov-action from 5.5.3 to 6.0.0

Bump codecov/codecov-action from 5.5.3 to 6.0.0 #4647

# Copyright 2026 OpenC3, Inc.
# All Rights Reserved.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# See LICENSE.md for more details.
# This file may also be used under the terms of a commercial license
# if purchased from OpenC3, Inc.
name: Python Unit Tests
# Only run on a push to main to avoid running for all the dependabot PRs
on:
push:
branches:
- main
pull_request:
branches:
- "**"
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
env:
OPENC3_CLOUD: local
OPENC3_REDIS_HOSTNAME: localhost
permissions:
contents: read
jobs:
unit-test:
if: ${{ github.actor != 'dependabot[bot]' }}
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.11", "3.12", "3.13"]
permissions:
contents: read
steps:
- name: Harden the runner (Audit all outbound calls)
uses: step-security/harden-runner@fa2e9d605c4eeb9fcad4c99c224cee0c6c7f3594 # v2.16.0
with:
egress-policy: audit
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Install uv
uses: astral-sh/setup-uv@cec208311dfd045dd5311c1add060b2062131d57 # v7
with:
version: "0.10.4"
enable-cache: true
cache-suffix: ${{ matrix.python-version }}
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: uv sync --frozen
working-directory: openc3/python
- name: Run unit tests
run: |
uv run --frozen coverage run -m pytest ./test/
uv run --frozen coverage xml -i
working-directory: openc3/python
- name: Prune uv cache
run: uv cache prune --ci
- uses: codecov/codecov-action@57e3a136b779b570ffcdbf80b3bdc90e7fab3de2 # v6.0.0
with:
working-directory: openc3/python
flags: python # See codecov.yml
token: ${{ secrets.CODECOV_TOKEN }}
# - name: SonarQube Scan
# uses: SonarSource/sonarqube-scan-action@v5
# with:
# projectBaseDir: openc3/python
# args: >
# -Dsonar.organization=openc3
# -Dsonar.projectKey=OpenC3_cosmos
# -Dsonar.python.coverage.reportPaths=coverage.xml
# -Dsonar.sources=openc3/
# -Dsonar.tests=test/
# env:
# SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}