-
Notifications
You must be signed in to change notification settings - Fork 8
70 lines (61 loc) · 1.77 KB
/
industrial_ci.yml
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
name: ROS Industrial CI
permissions:
checks: write
pull-requests: write
on:
push:
pull_request:
schedule:
- cron: '04 23 * * *'
jobs:
industrial_ci:
env:
ICI_BASEDIR: $GITHUB_WORKSPACE
strategy:
matrix:
distro:
- humble
- iron
- jazzy
- rolling
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: 'ros-industrial/industrial_ci@master'
env:
ROS_DISTRO: ${{ matrix.distro }}
BASEDIR: ${{ github.workspace }}/.build
ROS_REPO: main
AFTER_INSTALL_TARGET_DEPENDENCIES: 'if [ "$ROS_DISTRO" == "jazzy" ]; then pip3 install --break-system-packages coverage[toml]; else pip3 install coverage[toml]; fi;'
ENABLE_COVERAGE_TESTING: "true"
PIP_BREAK_SYSTEM_PACKAGES: "1"
- name: Upload Test Results
if: always()
uses: actions/upload-artifact@v3
with:
name: Test Results (ROS ${{ matrix.distro }})
path: |
.build/target_ws/build/ros_bt_py/pytest.xml
.build/target_ws/build/**/*xunit.xml
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
ROS_DISTRO: ${{ matrix.distro }}
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
directory: .build/
env_vars: ROS_DISTRO
publish_test_reports:
name: "Publish Tests Results"
needs: industrial_ci
runs-on: ubuntu-latest
if: always()
steps:
- name: Download Artifacts
uses: actions/download-artifact@v3
with:
path: artifacts
- name: Publish Test Results
uses: EnricoMi/publish-unit-test-result-action@v2
with:
files: "artifacts/**/*.xml"