Skip to content

build(deps): bump python from af4e85f to 2ec5a4a #659

build(deps): bump python from af4e85f to 2ec5a4a

build(deps): bump python from af4e85f to 2ec5a4a #659

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@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e ".[devel]"
- name: Lint with flake8
run: |
flake8 --count --show-source --statistics src/ tests/
- name: Static code analysis with pylint
run: |
pylint src/ tests/
- name: Test with pytest
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@b9fd7d16f6d7d1b5d2bec1a2887e65ceed900238 # v4.6.0
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@c47758b77c9736f4b2ef4073d4d51994fabfe349 # v3.7.1
- name: Build image
uses: docker/build-push-action@4f58ea79222b3b9dc2c8bbdd6debcef730109a75 # v6.9.0
with:
push: false
provenance: false
load: true
tags: localbuild/powerapi:sha-${{ github.sha }}