forked from mmschlk/shapiq
-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (38 loc) · 1.16 KB
/
coverage.yml
File metadata and controls
50 lines (38 loc) · 1.16 KB
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
42
43
44
45
46
47
48
49
50
# This workflow will install Python dependencies, run coverage tests with Python 3.11
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
name: coverage
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install uv
uses: astral-sh/setup-uv@v6
with:
enable-cache: true
- name: Cache UV packages
uses: actions/cache@v4
with:
path: ~/.cache/uv
key: uv-${{ runner.os }}-${{ matrix.python-version }}-${{ hashFiles('pyproject.toml', 'uv.lock') }}
restore-keys: |
uv-${{ runner.os }}-${{ matrix.python-version }}-
- name: Install dependencies
run: uv sync --all-extras --dev
- name: Measure coverage
run: uv run pytest --cov=shapiq --cov-report=xml -n logical
- name: Coveralls
uses: coverallsapp/github-action@v2
with:
path-to-lcov: coverage.xml