-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (43 loc) · 1.05 KB
/
test.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
49
50
51
name: test
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
workflow_call:
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
max-parallel: 12
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
python-version: ["3.10"]
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install pip dependencies
run: |
python -m pip install --upgrade pip
pip install pytest
pip install coverage
pip install -e .
- name: Test with pytest
run: |
coverage run -m pytest
coverage xml -i
env:
PLATFORM: ${{ matrix.os }}
- name: Upload coverage reports to Codecov
uses: codecov/[email protected]
with:
files: src/client/coverage.xml
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}