Skip to content

Update code.json

Update code.json #188

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.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 ..