-
Notifications
You must be signed in to change notification settings - Fork 15
62 lines (54 loc) · 1.21 KB
/
build.yml
File metadata and controls
62 lines (54 loc) · 1.21 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: build
on:
push:
branches:
- main
tags:
- "*-[0-9]+.*"
pull_request:
branches:
- main
jobs:
build:
name: test ${{matrix.os}} - ${{matrix.python-version}} - ${{matrix.java-version}}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [
ubuntu-latest,
windows-latest,
macos-latest
]
python-version: [
'3.9',
'3.13'
]
java-version: ['11']
include:
# one test without java to test cjdk fallback
- os: ubuntu-latest
python-version: '3.9'
java-version: ''
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{matrix.python-version}}
- uses: actions/setup-java@v4
if: matrix.java-version != ''
with:
java-version: ${{matrix.java-version}}
distribution: 'zulu'
cache: 'maven'
- name: Set up uv
run: |
python -m pip install --upgrade pip
python -m pip install uv
- name: Run tests
shell: bash
run: |
bin/test.sh
- name: Lint code
shell: bash
run: |
bin/lint.sh