Skip to content

BEGIN_PUBLIC Enable GCM upload for slice efficiency metrics in goodput library. END_PUBLIC #27

BEGIN_PUBLIC Enable GCM upload for slice efficiency metrics in goodput library. END_PUBLIC

BEGIN_PUBLIC Enable GCM upload for slice efficiency metrics in goodput library. END_PUBLIC #27

Workflow file for this run

# Copyright 2026 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
name: Run Tests
on:
pull_request:
concurrency:
group: >
${{
github.event_name == 'pull_request' && format('{0}-pr-{1}', github.workflow, github.event.pull_request.number) ||
github.event_name == 'schedule' && format('{0}-schedule', github.workflow) ||
github.run_id
}}
cancel-in-progress: true
jobs:
tests:
name: "Run tests"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Install uv and set the Python version
uses: astral-sh/setup-uv@v7
with:
python-version: '3.11'
enable-cache: true
- name: Set venv
run: uv venv --python 3.11 "$GITHUB_WORKSPACE"/venv
- name: Install package and test dependencies
run: |
. "$GITHUB_WORKSPACE"/venv/bin/activate
uv pip install -e ".[test]"
- name: Run tests
run: |
. "$GITHUB_WORKSPACE"/venv/bin/activate
pytest ml_goodput_measurement/tests/ -v \
--cov=ml_goodput_measurement/src \
--cov-report=term-missing