Skip to content

Merge pull request #610 from dstrigl/pyup-update-coverage-7.4.4-to-7.5.0 #1224

Merge pull request #610 from dstrigl/pyup-update-coverage-7.4.4-to-7.5.0

Merge pull request #610 from dstrigl/pyup-update-coverage-7.4.4-to-7.5.0 #1224

Workflow file for this run

name: CI
on:
push:
branches:
- '**' # run on all branches
pull_request:
branches:
- '**' # run on all branches
# allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.8', '3.9', '3.10']
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Cache pip packages
uses: actions/cache@v4
env:
cache-name: cache-pypi-modules
with:
# pip cache files are stored in '~/.cache/pip' on Linux
path: ~/.cache/pip
# look to see if there is a cache hit for the corresponding
# requirements file
key: |
${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('requirements/install.pip', 'requirements/develop.pip', 'requirements/test.pip', 'requirements/doc.pip') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements/install.pip
pip install -r requirements/develop.pip
pip install -r requirements/test.pip
pip install -r requirements/doc.pip
- name: Lint with flake8
run: |
flake8 htheatpump tests samples setup.py
- name: Test with pytest
run: |
pytest htheatpump tests samples
- name: Build the doc
working-directory: ./docs
run: |
sphinx-build -b html . _build