Skip to content

feat(component,schedule): introduce the schedule component #6849

feat(component,schedule): introduce the schedule component

feat(component,schedule): introduce the schedule component #6849

Workflow file for this run

name: Coverage
on: [push, pull_request]
jobs:
codecov:
name: codecov
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
services:
postgres:
image: postgres
env:
POSTGRES_PASSWORD: password
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432
steps:
- uses: actions/checkout@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Load .env file
uses: cardinalby/export-env-action@v2
with:
envFile: .env
- uses: actions/setup-go@v3
with:
go-version: ${{ env.GOLANG_VERSION }}
- uses: actions/checkout@v3
- uses: FedericoCarboni/setup-ffmpeg@v3
id: setup-ffmpeg
with:
ffmpeg-version: 7.0.2
- name: Install onnxruntime library and headers
run: |
export ONNXRUNTIME_ROOT_PATH=$GITHUB_WORKSPACE/onnxruntime
LATEST_VERSION=$(wget -qO- https://api.github.com/repos/microsoft/onnxruntime/releases/latest | jq -r .tag_name)
ONNX_ARCH=$([ "$TARGETARCH" = "arm64" ] && echo "aarch64" || echo "x64")
wget https://github.com/microsoft/onnxruntime/releases/download/${LATEST_VERSION}/onnxruntime-linux-${ONNX_ARCH}-${LATEST_VERSION#v}.tgz
tar -xzf onnxruntime-linux-${ONNX_ARCH}-${LATEST_VERSION#v}.tgz
mv onnxruntime-linux-${ONNX_ARCH}-${LATEST_VERSION#v} ${ONNXRUNTIME_ROOT_PATH}
rm onnxruntime-linux-${ONNX_ARCH}-${LATEST_VERSION#v}.tgz
echo "LD_RUN_PATH=${ONNXRUNTIME_ROOT_PATH}/lib" >> $GITHUB_ENV
echo "LIBRARY_PATH=${ONNXRUNTIME_ROOT_PATH}/lib" >> $GITHUB_ENV
echo "C_INCLUDE_PATH=${ONNXRUNTIME_ROOT_PATH}/include" >> $GITHUB_ENV
- name: Generate coverage report
run: |
make build-dev
make coverage DBTEST=true OCR=true ONNX=true
- name: Upload coverage report
uses: codecov/codecov-action@v2
with:
file: ./coverage.out
flags: unittests
name: codecov-umbrella