-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Try: Add CI for codecov * Try: Add CI for codecov * Try: Add CI for codecov * Try: Add CI for codecov * Implement: Coverage test * Fix: Use sh instead of bash * Fix: Add gcovr * Fix: Mount coverage_build dir * Fix: Mount coverage_build dir * Fix: Mount coverage_build dir * Fix: Specific file * Fix: Docker volume * Fix: Name issue
- Loading branch information
Showing
5 changed files
with
60 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: Run tests and upload coverage | ||
|
||
on: | ||
push | ||
|
||
jobs: | ||
test: | ||
name: Run tests and collect coverage | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- uses: actions/checkout@v3 | ||
- name: Build Docker image | ||
run: | | ||
docker build -t polygondust -f ./Dockerfile.coverage . | ||
- name: Create coverage_build directory | ||
run: | | ||
mkdir coverage_build | ||
- name: Run Test | ||
run: | | ||
docker run -v ./coverage_build/:/polygondust/coverage_build polygondust sh scripts/coverage.sh xml | ||
- name: Upload results to Codecov | ||
uses: codecov/codecov-action@v4 | ||
with: | ||
fail_ci_if_error: true | ||
files: ./coverage_build/polygondust-coverage-xml.xml | ||
token: ${{ secrets.CODECOV_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,4 +7,4 @@ COPY . /polygondust | |
|
||
WORKDIR /polygondust | ||
RUN cmake . | ||
RUN make -j 10 | ||
RUN make -j 10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
FROM python:3.11-alpine | ||
|
||
RUN apk add --update alpine-sdk py3-pip cmake openssl gcc py3-pybind11 | ||
RUN python3 -m pip install "pybind11[global]" gcovr | ||
|
||
COPY . /polygondust | ||
|
||
WORKDIR /polygondust |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters