Skip to content

Commit

Permalink
ci: merge coverage job (#6259)
Browse files Browse the repository at this point in the history
## Motivation

Merges the code coverage job to the existing `ci` flow for better visibility.
  • Loading branch information
acud committed Aug 16, 2024
1 parent d099983 commit 864aedb
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 66 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,44 @@ jobs:
timeout-minutes: 5
run: make build

coverage:
runs-on: ubuntu-22.04
needs: filter-changes
if: ${{ needs.filter-changes.outputs.nondocchanges == 'true' }}
steps:
- name: disable TCP/UDP offload
run: |
sudo ethtool -K eth0 tx off
sudo ethtool -K eth0 rx off
- uses: actions/checkout@v4
with:
lfs: true
ssh-key: ${{ secrets.GH_ACTION_PRIVATE_KEY }}

- uses: extractions/netrc@v2
with:
machine: github.com
username: ${{ secrets.GH_ACTION_TOKEN_USER }}
password: ${{ secrets.GH_ACTION_TOKEN }}
if: vars.GOPRIVATE
- name: set up go
uses: actions/setup-go@v5
with:
check-latest: true
go-version-file: "go.mod"
- name: Add OpenCL support - Ubuntu
run: sudo apt-get update -q && sudo apt-get install -qy ocl-icd-opencl-dev libpocl2
- name: setup env
run: make install
- name: test coverage
run: make cover
- name: Upload to codecov.io
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

unittests:
runs-on: ${{ matrix.os }}
needs: filter-changes
Expand Down
66 changes: 0 additions & 66 deletions .github/workflows/coverage.yml

This file was deleted.

0 comments on commit 864aedb

Please sign in to comment.