-
Notifications
You must be signed in to change notification settings - Fork 1
49 lines (41 loc) · 1.37 KB
/
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
49
name: Run Tests
on:
push:
branches: ["main"]
pull_request:
branches: ["*"]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
max-parallel: 4
fail-fast: false
matrix:
version: ["4.2", "4.3"]
os: [macos-14]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3.11.7
cache: pip
- name: Install the latest version of uv
uses: astral-sh/setup-uv@v4
with:
version: "latest"
- name: Install
run: |
uv sync --all-extras --dev
uv pip install bpy==${{ matrix.version }}
- name: Run tests
run: |
uv run -m pytest -vv --cov=databpy --cov-report=xml
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v5
if: matrix.os == 'macos-14' && matrix.version == '4.2'
with:
token: ${{ secrets.CODECOV_TOKEN }}
name: coverage.xml
- name: Upload coverage reports to Codecov
if: matrix.os == 'maxos-14' && matrix.version == '4.2'
uses: codecov/codecov-action@v3