forked from o-murphy/py-ballisticcalc
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (34 loc) · 883 Bytes
/
coverage.yml
File metadata and controls
41 lines (34 loc) · 883 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Coverage
on:
pull_request:
branches:
- '*'
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install uv and set the python version
uses: astral-sh/setup-uv@v5
with:
python-version: "3.11"
- name: Validate exts version matching
run: |
uv pip install tomli
python hooks/version_check.py
- name: Install the project
run: uv pip install -e .[dev]
- name: Run coverage
run: pytest tests --cov=pyballistic --cov-report=html
# - name: Install "coverage-badge"
# run: uv pip install coverage-badge
#
# - name: Generate coverage badge
# run: coverage-badge -o coverage.svg
#
# - name: Upload coverage badge
# uses: actions/upload-artifact@v4
# with:
# name: coverage.svg
# path: coverage.svg