Files
anybadge/.github/workflows/python_checks.yaml
Jon Grace-Cox 5dd8ac7fe3 chore: Add github workflows
Add github workflows for running pre-commit hooks on all files and
running pytests.
2024-12-30 07:11:12 -05:00

35 lines
743 B
YAML

---
name: Python tests
on:
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.12'
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools wheel
pip install -r build-requirements.txt
- name: Build package
run: python setup.py bdist_wheel
- name: Install package
run: pip install dist/*.whl
- name: Run tests
run: pytest --doctest-modules --cov=anybadge --cov-report term --cov-report xml:coverage.xml --cov-report html:htmlcov anybadge tests