Skip to content

feat: Improve reports input/output #1112

feat: Improve reports input/output

feat: Improve reports input/output #1112

Workflow file for this run

name: Build
on:
push:
branches: ["master"]
pull_request:
branches: ["master"]
permissions:
contents: read
jobs:
run-tests:
name: Run linters and unit tests
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.x"]
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
with:
python-version: ${{ matrix.python-version }}
- name: Install uv
uses: astral-sh/setup-uv@f0ec1fc3b38f5e7cd731bb6ce540c5af426746bb # v6.1.0
- name: Install dependencies
run: |
uv sync --extra everything --dev
- name: Run ruff
run: |
uv run ruff check --output-format=github src/ tests/
- name: Run unit tests with coverage
run: |
uv run pytest --cov=powerapi --cov-report=term --cov-report=xml tests/unit
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@18283e04ce6e62d37312384ff67231eb8fd56d24 # v5.4.3
with:
token: ${{ secrets.CODECOV_TOKEN }}
build-container-image:
name: Build container image
runs-on: ubuntu-latest
steps:
- name: Setup Docker buildx
uses: docker/setup-buildx-action@b5ca514318bd6ebac0fb2aedd5d36ec1b5c232a2 # v3.10.0
- name: Build image
uses: docker/build-push-action@1dc73863535b631f98b2378be8619f83b136f4a0 # v6.17.0
with:
push: false
provenance: false
load: true
tags: localbuild/powerapi:sha-${{ github.sha }}
build-args: |
POWERAPI_INSTALL_METHOD=local