Skip to content

Python client

Python client #20

Workflow file for this run

# This workflow will run tests for the SuhaibMessageQueue project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go
name: Tests
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
# Allow manual triggering
workflow_dispatch:
jobs:
test:
name: Run Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.23'
cache: true
- name: Install dependencies
run: go mod download
- name: Verify dependencies
run: go mod verify
- name: Run vet
run: go vet ./...
- name: Run tests with coverage
run: go test -race -coverprofile=coverage.txt -covermode=atomic ./...
- name: Upload coverage report
uses: codecov/codecov-action@v3
with:
file: ./coverage.txt
fail_ci_if_error: false