Skip to content

Feat/refactor

Feat/refactor #11

Workflow file for this run

name: Numalogic Apps CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
numalogic-udfs:
name: numalogic-udfs
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./apps/numa-udfs
steps:
- uses: actions/checkout@v4
# - name: Build and run dev container task
# uses: devcontainers/[email protected]
# with:
# subFolder: ./apps/numa-udfs
# runCmd: pytest --cov-report=xml --cov=src tests/ -sq
- name: Install poetry
run: pipx install poetry==1.8
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.11
cache: 'poetry'
- name: Install dependencies
run: |
poetry env use 3.11
poetry install --with dev
- name: Run Coverage
run: |
poetry run pytest --cov-report=xml --cov=src --cov-config .coveragerc tests/ -sq
- name: Upload Coverage
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage.xml
fail_ci_if_error: true
verbose: true