Skip to content

Commit b2455df

Browse files
Updated coverage job. Removed unused coverage pipeline.
1 parent 90687ed commit b2455df

File tree

2 files changed

+23
-114
lines changed

2 files changed

+23
-114
lines changed

.github/workflows/build.yml

Lines changed: 23 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -129,11 +129,16 @@ jobs:
129129
if-no-files-found: error
130130
overwrite: true
131131
include-hidden-files: true
132-
132+
133133
coverage:
134134
needs: build
135135
runs-on: ubuntu-22.04
136136

137+
env:
138+
COMPILER: gcc
139+
COMPILER_VERSION: 12
140+
BUILD_TYPE: Debug
141+
137142
steps:
138143
- name: Checkout repository
139144
uses: actions/checkout@v4
@@ -147,34 +152,32 @@ jobs:
147152
architecture: 'x64'
148153

149154
- name: Setup Virtual Environment
150-
run: |
151-
python3 -m venv .venv
152-
source .venv/bin/activate
153-
pip3 install -r scripts/requirements.txt
154-
conan remote add teiacare ${{ secrets.ARTIFACTORY_URL }}/teiacare --insert 0 --force
155-
conan user ${{ secrets.ARTIFACTORY_USERNAME }} -p ${{ secrets.ARTIFACTORY_PASSWORD }} -r teiacare
155+
uses: ./.github/actions/shell
156+
with:
157+
commands: |
158+
python3 -m venv .venv
159+
${{ matrix.config.activate_venv }}
160+
pip3 install -r scripts/requirements.txt
161+
conan remote add teiacare ${{ secrets.ARTIFACTORY_URL }}/teiacare --insert 0 --force
162+
conan user ${{ secrets.ARTIFACTORY_USERNAME }} -p ${{ secrets.ARTIFACTORY_PASSWORD }} -r teiacare
156163
env:
157164
CONAN_USER_HOME: ${{ github.workspace }}
158165

159-
- name: Download Conan cache artifacts
160-
uses: actions/download-artifact@v4
161-
with:
162-
name: ubuntu2204_gcc12-Debug
163-
path: .conan/
164-
165166
- name: Setup Conan
166-
run: |
167-
source .venv/bin/activate
168-
python3 scripts/conan/setup.py Debug gcc 12
167+
uses: ./.github/actions/shell
168+
with:
169+
commands: |
170+
source .venv/bin/activate
171+
python3 scripts/conan/setup.py ${{ env.BUILD_TYPE }} ${{ env.COMPILER }} ${{ env.COMPILER_VERSION }}
169172
env:
170173
CONAN_USER_HOME: ${{ github.workspace }}
171-
174+
172175
- name: Run Code Coverage
173176
run: |
174177
source .venv/bin/activate
175-
python3 scripts/cmake.py Debug gcc 12 --warnings --coverage
176-
python3 scripts/tools/run_unit_tests.py Debug
177-
python3 scripts/tools/run_coverage.py gcc 12
178+
python3 scripts/cmake.py ${{ env.BUILD_TYPE }} ${{ env.COMPILER }} ${{ env.COMPILER_VERSION }} --warnings --coverage
179+
python3 scripts/tools/run_unit_tests.py ${{ env.BUILD_TYPE }}
180+
python3 scripts/tools/run_coverage.py ${{ env.COMPILER }} ${{ env.COMPILER_VERSION }}
178181
timeout-minutes: 5
179182
continue-on-error: true
180183
env:

.github/workflows/coverage.yml

Lines changed: 0 additions & 94 deletions
This file was deleted.

0 commit comments

Comments
 (0)