Skip to content

Commit d3c7ae4

Browse files
committed
add the new submodule at cli
1 parent 5851ec2 commit d3c7ae4

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

.github/workflows/unit-tests.yaml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: unit-tests
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
workflow_dispatch:
8+
9+
defaults:
10+
run:
11+
working-directory: ./cli
12+
13+
jobs:
14+
unit-tests:
15+
strategy:
16+
fail-fast: false
17+
matrix:
18+
python-version: [3.9.18, 3.10.13, 3.11.6, 3.12.1, 3.13.0]
19+
continue-on-error: true
20+
runs-on: ubuntu-latest
21+
steps:
22+
- uses: actions/checkout@v4
23+
with:
24+
fetch-depth: 0
25+
token: ${{ secrets.GITHUB_TOKEN }}
26+
27+
- name: Install uv
28+
uses: astral-sh/setup-uv@v5
29+
with:
30+
python-version: ${{ matrix.python-version }}
31+
version: "0.5.30"
32+
- name: install poetry as a tool
33+
run: uv tool install poetry
34+
35+
- name: install dependencies
36+
run: uvx poetry install --with dev
37+
38+
- name: Unit tests
39+
run: uvx poetry run pytest tests/ --cov --cov-report=xml
40+
41+
- name: Upload coverage reports to Codecov
42+
uses: codecov/codecov-action@v5
43+
if: matrix.python-version == '3.12.1'
44+
with:
45+
token: ${{ secrets.CODECOV_TOKEN }}

0 commit comments

Comments
 (0)