Skip to content

Commit

Permalink
draft coverage workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
zachjs committed Jun 16, 2024
1 parent d3dbaf0 commit 96094e6
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ on:
release:
types:
- created
schedule:
- cron: '0 0 * * 0'
jobs:

build:
Expand Down Expand Up @@ -48,6 +50,7 @@ jobs:
needs: build
env:
IVERILOG_REF: ef7f0a8f38782dfc0872b1e352ccf32343c10bb8
TEST_MODE: "${{ github.event_name == 'push' && matrix.os == 'ubuntu-22.04' && 'coverage' || 'regular' }}"
steps:
- uses: actions/checkout@v4
- name: Install Dependencies (macOS)
Expand Down Expand Up @@ -80,14 +83,25 @@ jobs:
chmod +x ~/.local/bin/shunit2
echo "$HOME/.local/bin" >> $GITHUB_PATH
- name: Download Artifact
if: env.TEST_MODE == 'regular'
uses: actions/download-artifact@v4
with:
name: ${{ runner.os }}
path: bin
- name: Test
if: env.TEST_MODE == 'regular'
run: |
chmod +x bin/sv2v
make test
- name: Coverage
if: env.TEST_MODE == 'coverage'
run: make coverage
- name: Upload Coverage
uses: actions/upload-artifact@v4
if: env.TEST_MODE == 'coverage'
with:
name: coverage
path: .hpc/*.html

release:
permissions:
Expand Down

0 comments on commit 96094e6

Please sign in to comment.