Skip to content

Commit fcd4d8c

Browse files
committed
Fix skipping log files for polyscopex
1 parent a343560 commit fcd4d8c

File tree

1 file changed

+42
-42
lines changed

1 file changed

+42
-42
lines changed

.github/workflows/ci.yml

Lines changed: 42 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@ jobs:
1717
fail-fast: false
1818
matrix:
1919
env:
20-
#- ROBOT_MODEL: 'ur5'
21-
#URSIM_VERSION: '3.14.3'
22-
#PROGRAM_FOLDER: 'tests/resources/dockerursim/programs/cb3'
23-
#- ROBOT_MODEL: 'ur5e'
24-
#URSIM_VERSION: '5.9.4'
25-
#PROGRAM_FOLDER: 'tests/resources/dockerursim/programs/e-series'
26-
#- ROBOT_MODEL: 'ur20'
27-
#URSIM_VERSION: 'latest'
28-
#PROGRAM_FOLDER: 'tests/resources/dockerursim/programs/e-series'
20+
- ROBOT_MODEL: 'ur5'
21+
URSIM_VERSION: '3.14.3'
22+
PROGRAM_FOLDER: 'tests/resources/dockerursim/programs/cb3'
23+
- ROBOT_MODEL: 'ur5e'
24+
URSIM_VERSION: '5.9.4'
25+
PROGRAM_FOLDER: 'tests/resources/dockerursim/programs/e-series'
26+
- ROBOT_MODEL: 'ur20'
27+
URSIM_VERSION: 'latest'
28+
PROGRAM_FOLDER: 'tests/resources/dockerursim/programs/e-series'
2929
- ROBOT_MODEL: 'ur5e'
3030
URSIM_VERSION: '10.7.0'
3131
PROGRAM_FOLDER: 'tests/resources/dockerursim/programs/polyscopex'
@@ -40,36 +40,36 @@ jobs:
4040
ROBOT_MODEL: ${{matrix.env.ROBOT_MODEL}}
4141
URSIM_VERSION: ${{matrix.env.URSIM_VERSION}}
4242
PROGRAM_FOLDER: ${{matrix.env.PROGRAM_FOLDER}}
43-
#- name: configure
44-
#run: mkdir build && cd build && cmake .. -DBUILDING_TESTS=1 -DINTEGRATION_TESTS=1 -DWITH_ASAN=ON
45-
#env:
46-
#CXXFLAGS: -g -O2 -fprofile-arcs -ftest-coverage
47-
#CFLAGS: -g -O2 -fprofile-arcs -ftest-coverage
48-
#LDFLAGS: -fprofile-arcs -ftest-coverage
49-
#- name: build
50-
#run: cmake --build build --config Debug
51-
#- name: Create folder for test artifacts
52-
#run: mkdir -p test_artifacts
53-
#- name: test
54-
#run: cd build && ctest --output-on-failure --output-junit junit.xml
55-
#- name: Upload test results to Codecov
56-
#if: ${{ !cancelled() }}
57-
#uses: codecov/test-results-action@v1
58-
#with:
59-
#token: ${{ secrets.CODECOV_TOKEN }}
60-
#fail_ci_if_error: true
61-
#- name: run examples
62-
#run: ./run_examples.sh "192.168.56.101" 1
63-
#- name: install gcovr
64-
#run: sudo apt-get install -y gcovr
65-
#- name: gcovr
66-
#run: cd build && gcovr -r .. --gcov-ignore-parse-errors negative_hits.warn_once_per_file
67-
#- name: Upload coverage to Codecov
68-
#uses: codecov/codecov-action@v5
69-
#with:
70-
#fail_ci_if_error: true
71-
#token: ${{ secrets.CODECOV_TOKEN }}
72-
#flags: ${{ matrix.env.ROBOT_MODEL }}-${{ matrix.env.URSIM_VERSION }}
43+
- name: configure
44+
run: mkdir build && cd build && cmake .. -DBUILDING_TESTS=1 -DINTEGRATION_TESTS=1 -DWITH_ASAN=ON
45+
env:
46+
CXXFLAGS: -g -O2 -fprofile-arcs -ftest-coverage
47+
CFLAGS: -g -O2 -fprofile-arcs -ftest-coverage
48+
LDFLAGS: -fprofile-arcs -ftest-coverage
49+
- name: build
50+
run: cmake --build build --config Debug
51+
- name: Create folder for test artifacts
52+
run: mkdir -p test_artifacts
53+
- name: test
54+
run: cd build && ctest --output-on-failure --output-junit junit.xml
55+
- name: Upload test results to Codecov
56+
if: ${{ !cancelled() }}
57+
uses: codecov/test-results-action@v1
58+
with:
59+
token: ${{ secrets.CODECOV_TOKEN }}
60+
fail_ci_if_error: true
61+
- name: run examples
62+
run: ./run_examples.sh "192.168.56.101" 1
63+
- name: install gcovr
64+
run: sudo apt-get install -y gcovr
65+
- name: gcovr
66+
run: cd build && gcovr -r .. --gcov-ignore-parse-errors negative_hits.warn_once_per_file
67+
- name: Upload coverage to Codecov
68+
uses: codecov/codecov-action@v5
69+
with:
70+
fail_ci_if_error: true
71+
token: ${{ secrets.CODECOV_TOKEN }}
72+
flags: ${{ matrix.env.ROBOT_MODEL }}-${{ matrix.env.URSIM_VERSION }}
7373
- name: Generate URSim log files
7474
if: always() && matrix.env.URSIM_VERSION != '10.7.0'
7575
run: |
@@ -81,21 +81,21 @@ jobs:
8181
docker cp ursim:/ursim/polyscope.log ursim_logs/polyscope.log
8282
docker cp ursim:/ursim/log_history.txt ursim_logs/log_history.txt
8383
- name: Copy flight reports
84-
if: failure() && ${{ matrix.env.URSIM_VERSION != '10.7.0' }}
84+
if: failure() && matrix.env.URSIM_VERSION != '10.7.0'
8585
run: |
8686
mkdir -p ursim_logs/flightreports
8787
docker cp ursim:/ursim/flightreports/. ursim_logs/flightreports/
8888
- name: Upload logfiles
8989
uses: actions/upload-artifact@v4
90-
if: always() && ${{ matrix.env.URSIM_VERSION != '10.7.0' }}
90+
if: always() && matrix.env.URSIM_VERSION != '10.7.0'
9191
with:
9292
name: ${{matrix.env.ROBOT_MODEL}}_${{matrix.env.URSIM_VERSION}}_URSim_Logs
9393
path: ursim_logs
9494
if-no-files-found: error
9595
retention-days: 10
9696
- name: Upload test artifacts
9797
uses: actions/upload-artifact@v4
98-
if: always() && ${{ matrix.env.URSIM_VERSION != '10.7.0' }}
98+
if: always() && matrix.env.URSIM_VERSION != '10.7.0'
9999
with:
100100
name: ${{matrix.env.ROBOT_MODEL}}_${{matrix.env.URSIM_VERSION}}_test_artifacts
101101
path: test_artifacts

0 commit comments

Comments
 (0)