-
Notifications
You must be signed in to change notification settings - Fork 0
83 lines (70 loc) · 1.97 KB
/
build.yml
File metadata and controls
83 lines (70 loc) · 1.97 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
name: build
on:
push:
branches:
- main
tags:
- "*-[0-9]+.*"
pull_request:
branches:
- main
jobs:
build:
name: ${{ matrix.os }} py${{ matrix.python-version }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
python-version: ['3.11', '3.14']
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Cache Maven repository
uses: actions/cache@v4
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('tests/**') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Cache jgo environments
uses: actions/cache@v4
with:
path: ~/.cache/jgo
key: ${{ runner.os }}-jgo-${{ hashFiles('tests/**') }}
restore-keys: |
${{ runner.os }}-jgo-
- name: Cache cjdk (Java downloads)
uses: actions/cache@v4
with:
path: ~/.cache/cjdk
key: ${{ runner.os }}-cjdk-${{ hashFiles('tests/**') }}
restore-keys: |
${{ runner.os }}-cjdk-
- name: Cache uv
uses: actions/cache@v4
with:
path: ~/.cache/uv
key: ${{ runner.os }}-py${{ matrix.python-version }}-uv-${{ hashFiles('**/pyproject.toml') }}
restore-keys: |
${{ runner.os }}-py${{ matrix.python-version }}-uv-
- name: Set up uv
run: |
python -m pip install --upgrade pip
python -m pip install uv
- name: Set up prysk
run: |
uv tool install prysk
- name: Set up pombast
run: |
uv tool install --with-editable . pombast
- name: Run tests
shell: bash
run: |
bin/test.sh
- name: Lint code
shell: bash
run: |
bin/lint.sh