Skip to content

build(deps): bump python from 026dd41 to a569688 #835

build(deps): bump python from 026dd41 to a569688

build(deps): bump python from 026dd41 to a569688 #835

Workflow file for this run

name: Build
on:
push:
branches: ["master"]
pull_request:
branches: ["master"]
permissions:
contents: read
jobs:
build-and-test:
name: Build project and run 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@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
with:
python-version: ${{ matrix.python-version }}
- name: Install uv
uses: astral-sh/setup-uv@4db96194c378173c656ce18a155ffc14a9fc4355 # v5.2.2
- name: Install dependencies
run: |
uv sync --extra everything --dev
- name: Lint with flake8
run: |
uv run flake8 --count --show-source --statistics src/ tests/
- name: Static code analysis with pylint
run: |
uv run pylint src/ tests/
- name: Test with pytest
run: |
uv run pytest --cov=powerapi --cov-report=term --cov-report=xml tests/unit
- name: Upload coverage reports to Codecov
if: ${{ matrix.python-version }} == "3.10"
uses: codecov/codecov-action@13ce06bfc6bbe3ecf90edbbf1bc32fe5978ca1d3 # v5.3.1
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: coverage.xml
build-container-image:
name: Build container image
runs-on: ubuntu-latest
steps:
- name: Setup Docker buildx
uses: docker/setup-buildx-action@6524bf65af31da8d45b59e8c27de4bd072b392f5 # v3.8.0
- name: Build image
uses: docker/build-push-action@ca877d9245402d1537745e0e356eab47c3520991 # v6.13.0
with:
push: false
provenance: false
load: true
tags: localbuild/powerapi:sha-${{ github.sha }}