-
Notifications
You must be signed in to change notification settings - Fork 6
47 lines (45 loc) · 1.02 KB
/
test.yaml
File metadata and controls
47 lines (45 loc) · 1.02 KB
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: Test
on:
push:
branches:
- master
pull_request:
workflow_dispatch:
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- windows-latest
- macos-latest
python-version:
- '3.10'
- '3.13'
steps:
- uses: actions/checkout@v6
- uses: actions/setup-java@v5
with:
distribution: temurin
java-version: '21'
- uses: astral-sh/setup-uv@v7
with:
enable-cache: true
cache-dependency-glob: uv.lock
python-version: ${{ matrix.python-version }}
- name: Setup
shell: bash
run: |
export DOWNLOAD_LATEST_ONLY=1
uv run task publish
- name: Test
run: |
uv run task test:ci
- name: Pytest coverage comment
if: ${{ github.actor != 'dependabot[bot]' }}
uses: MishaKav/pytest-coverage-comment@v1.5.0
with:
pytest-xml-coverage-path: ./coverage.xml
junitxml-path: ./pytest.xml