-
Notifications
You must be signed in to change notification settings - Fork 28
47 lines (41 loc) · 1.14 KB
/
apps.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
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 install --no-root --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
working-directory: ./apps/numa-udfs
name: numalogic-udfs