aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/.github/workflows
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2023-08-27 12:49:14 +0200
committerEgor Tensin <Egor.Tensin@gmail.com>2023-08-27 17:59:52 +0200
commite19acf196c518fd7f8fe39a7f64f3febb35b6dfb (patch)
tree99164db2ccd0648fb747f52f5b3b351b538b90e7 /.github/workflows
parentagain, reorganize test targets (diff)
downloadcimple-e19acf196c518fd7f8fe39a7f64f3febb35b6dfb.tar.gz
cimple-e19acf196c518fd7f8fe39a7f64f3febb35b6dfb.zip
test: add a target to generate an HTML report
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/ci.yml23
1 files changed, 21 insertions, 2 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 380ef74..6ba582e 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -32,10 +32,17 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3
+ - name: Set up Python
+ uses: actions/setup-python@v4
+ with:
+ python-version: '3.x'
+ cache: pip
+ cache-dependency-path: ./test/py/requirements.txt
- name: Install dependencies
run: |
sudo apt-get update
sudo DEBIAN_FRONTEND=noninteractive apt-get install -yq --no-install-recommends $DEPS valgrind
+ pip install -q -r ./test/py/requirements.txt
- name: Build
run: make install
- name: Upload binaries
@@ -45,7 +52,14 @@ jobs:
path: './build/install/'
if-no-files-found: error
- name: Run tests
- run: make test
+ run: make test/report
+ - name: Upload test report
+ uses: actions/upload-artifact@v3
+ with:
+ name: 'test-report-${{ matrix.compiler }}-${{ matrix.configuration }}'
+ path: './build/test_report/'
+ if-no-files-found: error
+ if: always()
- name: Run Valgrind tests
run: make test/valgrind
@@ -72,7 +86,7 @@ jobs:
make coverage
mkdir -p /tmp/out/
cp -r ./build/coverage/ /tmp/out/
- - name: Upload report
+ - name: Upload coverage report
uses: actions/upload-artifact@v3
with:
name: coverage
@@ -96,6 +110,11 @@ jobs:
name: flame_graphs
path: ./build/flame_graphs/
if-no-files-found: error
+ - name: Download test report
+ uses: actions/download-artifact@v3
+ with:
+ name: test-report-gcc-Release
+ path: /tmp/out/test_report/
- name: Publish to GitHub Pages
uses: JamesIves/github-pages-deploy-action@v4
with: