-
Notifications
You must be signed in to change notification settings - Fork 131
47 lines (37 loc) · 1.3 KB
/
unit-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
name: Comet LLM Unit Tests
on:
pull_request:
jobs:
UnitTests:
name: Units_Python_${{matrix.python_version}}
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
python_version: ["3.6", "3.7", "3.8", "3.9", "3.10", "3.11"]
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Print environment variables
run: env
- name: Print event object
run: cat $GITHUB_EVENT_PATH
- name: Print the PR title
run: echo "${{ github.event.pull_request.title }}"
- name: Setup Python ${{ matrix.python_version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python_version }}
- name: Install comet-llm
run: pip install -e .
- name: Install test requirements
run: |
cd ./tests
pip install --no-cache-dir --disable-pip-version-check -r test_requirements.txt
- name: Running SDK Unit Tests
run: python -m pytest --cov=src/comet_llm --cov-report=html:coverage_report_${{matrix.python_version}} -vv tests/unit/
- name: archive coverage report
uses: actions/upload-artifact@v3
with:
name: coverage_report_${{matrix.python_version}}
path: coverage_report_${{matrix.python_version}}