aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows/push.yml
diff options
context:
space:
mode:
authorumarcor <unai.martinezcorral@ehu.eus>2021-01-01 02:24:55 +0100
committertgingold <tgingold@users.noreply.github.com>2021-01-01 11:19:04 +0100
commitff6c17f5880428fe176c871c255222c7b7ae9879 (patch)
treecb32cb6e9c53c08d4da99f4c352346dbf6ed7a71 /.github/workflows/push.yml
parente62a09a14b109edb07aabfede29097197f11fee0 (diff)
downloadghdl-ff6c17f5880428fe176c871c255222c7b7ae9879.tar.gz
ghdl-ff6c17f5880428fe176c871c255222c7b7ae9879.tar.bz2
ghdl-ff6c17f5880428fe176c871c255222c7b7ae9879.zip
ci: add job 'Coverage'
Diffstat (limited to '.github/workflows/push.yml')
-rw-r--r--.github/workflows/push.yml44
1 files changed, 42 insertions, 2 deletions
diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml
index 50cd3cbd0..db1ca813b 100644
--- a/.github/workflows/push.yml
+++ b/.github/workflows/push.yml
@@ -120,7 +120,7 @@ jobs:
# Windows Build
#
- win:
+ win-build:
runs-on: windows-latest
strategy:
fail-fast: false
@@ -182,7 +182,7 @@ jobs:
#
win-test:
- needs: win
+ needs: win-build
runs-on: windows-latest
strategy:
fail-fast: false
@@ -260,6 +260,46 @@ jobs:
-H "Authorization: token ${{ secrets.GHDL_BOT }}" \
--data '{"event_type": "ghdl"}'
+#
+# Coverage (MINGW64)
+#
+
+ coverage:
+ needs: win-build
+ runs-on: windows-latest
+ name: '🟪 Coverage'
+ defaults:
+ run:
+ shell: msys2 {0}
+ steps:
+
+ - name: '🟪 Setup MSYS2'
+ uses: msys2/setup-msys2@v2
+ with:
+ msystem: MINGW64
+ update: true
+ install: mingw-w64-x86_64-python-pip
+
+ - run: git config --global core.autocrlf input
+ shell: bash
+
+ - name: '🧰 Checkout'
+ uses: actions/checkout@v2
+
+ - name: '📥 Download artifact: package'
+ uses: actions/download-artifact@v2
+
+ - name: Install package and Python dependencies
+ run: |
+ pacman --noconfirm -U artifact/mingw-w64-x86_64-ghdl-llvm-*.zst
+ pip3 install -r testsuite/requirements.txt
+
+ - name: Test package
+ run: |
+ GHDL=ghdl \
+ PYTEST_ARGS='--cov=.. --cov-config=.coveragerc' \
+ ./testsuite/testsuite.sh pyunit
+
#---
# TODO: