Skip to content

Add coverage report #23

Add coverage report

Add coverage report #23

Workflow file for this run

---
name: "Test"
on:
pull_request:
push:
branches:
- "main"
env:
CLAMD_UNIX_SOCKET: "/tmp/clamd.socket"
CLAMD_TCP_PORT: "3310"
jobs:
test:
name: "Test Python ${{ matrix.python-version }}"
runs-on: "ubuntu-22.04"
steps:
- name: "Check out repository"
uses: "actions/checkout@v4"
- name: Start ClamAV daemon clamd
uses: toblux/start-clamd-github-action@bae519cc165de29b89cbb9c4528f61c34b1c848b # v0.2.1
with:
unix_socket: ${{ env.CLAMD_UNIX_SOCKET }}
tcp_port: ${{ env.CLAMD_TCP_PORT }}
stream_max_length: 1M
- name: Install the latest version of uv
uses: astral-sh/setup-uv@v2
with:
enable-cache: true
version: latest
- name: Run tests
run: ./test.sh
- name: "Upload coverage report"
if: github.repository == 'artefactual-labs/clamav-client'
uses: "codecov/codecov-action@v4"
with:
files: ./coverage.xml
fail_ci_if_error: false
verbose: true
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}