-
Notifications
You must be signed in to change notification settings - Fork 23
48 lines (43 loc) · 1.12 KB
/
cli_tests.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
48
name: Pytest (Installation)
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
on:
push:
branches:
- main
- release
- dev
pull_request:
branches:
- main
- release
jobs:
Pytest:
strategy:
max-parallel: 5
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: 3.11.2
- name: Set up Docker
if: runner.os == 'ubuntu-latest'
uses: docker-practice/actions-setup-docker@master
timeout-minutes: 12
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install uv
uv sync --extra test --extra chat
- name: Test with pytest
run: |
uv run pytest tests/cli/test_install.py --cov=. --cov-report=xml
- name: Upload coverage report to Codecov
uses: codecov/codecov-action@v4.0.1
with:
token: ${{ secrets.CODECOV_TOKEN }}