Skip to content

Commit e92a685

Browse files
committed
Add GitHub workflow file to run tools/check_float_test_names.py
but only when one of the relevant files changes
1 parent 119a040 commit e92a685

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Check floating-point tests
2+
3+
on:
4+
push:
5+
paths:
6+
- .github/workflows/check_float_tests.yml
7+
- tools/check_float_test_names.py
8+
- src/rp2_common/pico_float/include/pico/float.h
9+
- src/rp2_common/pico_double/include/pico/double.h
10+
- test/pico_float_test/custom_float_funcs_test.c
11+
- test/pico_float_test/custom_double_funcs_test.c
12+
pull_request:
13+
paths:
14+
- .github/workflows/check_float_tests.yml
15+
- tools/check_float_test_names.py
16+
- src/rp2_common/pico_float/include/pico/float.h
17+
- src/rp2_common/pico_double/include/pico/double.h
18+
- test/pico_float_test/custom_float_funcs_test.c
19+
- test/pico_float_test/custom_double_funcs_test.c
20+
21+
jobs:
22+
check-float-tests:
23+
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
24+
runs-on: ubuntu-latest
25+
steps:
26+
- name: Checkout
27+
uses: actions/checkout@v4
28+
29+
- name: Check float tests
30+
run: |
31+
tools/check_float_test_names.py

0 commit comments

Comments
 (0)