mirror of
https://github.com/jongracecox/anybadge.git
synced 2026-01-11 14:37:17 +01:00
35 lines
743 B
YAML
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
|