Skip to content

BHC speedup

BHC speedup #16

Workflow file for this run

name: Python application
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.8.3
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest coverage wheel flake8-black
pip install -r requirements.txt
- name: Lint with flake8
run: |
flake8 . --count --show-source --statistics
flake8 . --count --exit-zero --statistics
- name: Test and coverage
run: |
coverage run -m pytest
coverage html -d coverage_report
- name: Build package
run: |
python setup.py sdist bdist_wheel
- name: Upload artifacts
uses: actions/upload-artifact@v2
with:
name: bhc
path: dist/
- name: Upload coverage report
uses: actions/upload-artifact@v2
with:
name: coverage
path: coverage_report/