protobuf conversion fix #90
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Quality Gate | |
env: | |
COVERAGE_THRESH_PCT: 81 | |
on: | |
pull_request: | |
types: [opened, synchronize, reopened] | |
push: | |
branches: | |
- main | |
jobs: | |
ci_gate: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/setup-go@v3 | |
with: | |
go-version: 1.21 | |
- uses: actions/checkout@v3 | |
- name: golangci-lint | |
uses: golangci/golangci-lint-action@v3 | |
- name: Setup unit test | |
run: go install github.com/klmitch/[email protected] | |
- name: Run unit test with coverage | |
run: go test --coverprofile cover.out ./pdp ./attributes ./protoconv | |
- name: Check coverage meets threshold | |
run: overcover --coverprofile cover.out ./pdp ./attributes --threshold ${{ env.COVERAGE_THRESH_PCT }} | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
- name: Validate python project files | |
run: python3 -m compileall ./clients/python |