Skip to content

Update README.md

Update README.md #29

Workflow file for this run

name: CI workflow
on:
push:
pull_request:
jobs:
build:
runs-on: ubuntu-latest
container: python:3.10-slim
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Install package
run: |
pip install -e .
- name: Python Black Check
uses: rodrigogiraoserrao/python-black-check@v2.0
with:
line-length: '88'
exclude: '/(\.git|\.hg|\.mypy_cache|\.pytest_cache|\.tox|\.venv|_build|build|dist)/'
- name: Lint with flake8
run: |
pip install flake8
flake8 --count --max-line-length=88 --show-source --statistics --extend-ignore=E203 --per-file-ignores='__init__.py:F401' bemppUQ/ examples/ tests/
- name: Tests with pytest
run: |
pip install pytest-codecov
pytest --cov=drinks --cov-report xml:coverage.xml --cov-report term-missing tests/ -W "ignore" -v
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage.xml