-
Notifications
You must be signed in to change notification settings - Fork 5
54 lines (43 loc) · 1.22 KB
/
Copy pathcoveralls-main.yaml
File metadata and controls
54 lines (43 loc) · 1.22 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
51
52
53
54
name: Coveralls Main
on:
push:
branches: [main]
workflow_dispatch:
permissions:
contents: read
concurrency:
group: coveralls-main-${{ github.ref }}
cancel-in-progress: true
jobs:
coveralls:
name: Build main coverage baseline
runs-on: ubuntu-24.04
timeout-minutes: 30
permissions:
contents: read
checks: write
statuses: write
steps:
- name: Checkout
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8
- name: Set up Python 3.14
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405
with:
python-version: "3.14"
- name: Install testing dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -e .[testing]
- name: Run coverage
run: |
python -m pytest tests/unit \
--cov CodeEntropy \
--cov-report term-missing \
--cov-report xml \
-q
- name: Upload coverage to Coveralls
uses: coverallsapp/github-action@5cbfd81b66ca5d10c19b062c04de0199c215fb6e
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
file: coverage.xml
fail-on-error: false