Skip to content

build(deps): bump github/codeql-action from 3.29.1 to 3.29.2 #1060

build(deps): bump github/codeql-action from 3.29.1 to 3.29.2

build(deps): bump github/codeql-action from 3.29.1 to 3.29.2 #1060

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@bd01e18f51369d5a26f1651c3cb451d3417e3bba # v6.3.1
- 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@e468171a9de216ec08956ac3ada2f0791b6bd435 # v3.11.1
- name: Build image
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6.18.0
with:
push: false
provenance: false
load: true
tags: localbuild/powerapi:sha-${{ github.sha }}
build-args: |
POWERAPI_INSTALL_METHOD=local