Skip to content

Merge branch 'update-contributing' into 'main' #92

Merge branch 'update-contributing' into 'main'

Merge branch 'update-contributing' into 'main' #92

Workflow file for this run

# This workflow installs and tests hyswap
name: build
on:
push:
pull_request:
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
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: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -r requirements-dev.txt
pip install .
- name: Lint with flake8
run: |
flake8 .
pydocstringformatter .
- name: Test with pytest and report coverage
run: |
coverage run -m pytest
coverage report -m
cd ..