Skip to content

Update version to 0.1.1 #12

Update version to 0.1.1

Update version to 0.1.1 #12

Workflow file for this run

# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
name: CI
on:
pull_request:
branches:
- '*'
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ['ubuntu-latest', 'macos-latest']
python-version: ['3.10', '3.12']
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install PanGBank-cli
run: |
pip install .
pangbank --help
- name: Lint with flake8
run: |
pip install flake8
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with pytest
run: |
pip install pytest pytest-cov
pytest --cov=pangbank_cli --cov-report=html --cov-report=xml
# - name: Generate coverage badge
# run: |
# pip install genbadge[coverage]
# genbadge coverage -i coverage.xml -o htmlcov/coverage-badge.svg
# rm htmlcov/.gitignore
# - name: Publish coverage report to GitHub Pages
# if: github.ref == format('refs/heads/{0}', github.event.repository.default_branch)
# uses: JamesIves/github-pages-deploy-action@v4
# with:
# folder: htmlcov
# branch: gh-pages