-
-
Notifications
You must be signed in to change notification settings - Fork 10
48 lines (40 loc) · 1.1 KB
/
release_test_file_coverage.yml
File metadata and controls
48 lines (40 loc) · 1.1 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
name: 'RELEASE: Check test code'
on:
pull_request:
types:
- opened
- reopened
- synchronize
- ready_for_review
branches:
- stable
jobs:
check_all_tests_ran:
name: all executed
runs-on: 'ubuntu-latest'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
if: ${{ !github.event.pull_request.draft }}
steps:
- name: Check out repo
uses: actions/checkout@v4
- name: Install Python
uses: actions/setup-python@v5
with:
python-version: '3.13'
cache: 'pip'
cache-dependency-path: |
requirements-ci.txt
requirements-flake8.txt
- name: Install CI requirements
run: pip install -r requirements-ci.txt -r requirements-flake8.txt
- name: Build docs & ensure scratch
run: |
cd doc
make html
mkdir scratch
- name: Run pytest covering entire project tree
run: pytest --cov=. --nonloc --flake8_ext
- name: Check 100% test code execution
run: coverage report --include="tests/*" --fail-under=100