Update tox to 4.8.0 #933
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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@v2 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Cache pip packages | |
uses: actions/cache@v2 | |
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 |