Skip to content

build(deps): bump docker/build-push-action from 4.2.0 to 4.2.1 #132

build(deps): bump docker/build-push-action from 4.2.0 to 4.2.1

build(deps): bump docker/build-push-action from 4.2.0 to 4.2.1 #132

Workflow file for this run

name: Build
on:
push:
branches: ["master"]
pull_request:
branches: ["master"]
jobs:
build-and-test:
name: Build project and run tests
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.x"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
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 powerapi/ tests/
- name: Static code analysis with pylint
run: |
pylint powerapi/ 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.8"
uses: codecov/codecov-action@eaaf4bedf32dbdc6b720b63067d99c4d77d6047d # v3.1.4
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: coverage.xml