-
-
Notifications
You must be signed in to change notification settings - Fork 56
49 lines (39 loc) · 1.13 KB
/
python.yml
File metadata and controls
49 lines (39 loc) · 1.13 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
name: Python
on:
push:
branches: [ develop ]
pull_request:
branches: [ develop ]
permissions:
contents: read
jobs:
build:
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest, windows-latest, macos-latest ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v6.0.2
- name: Download dictionary
run: bash fetch_dictionary.sh "20220519" "core" "8de60382bde6b8307a10daa265569164a6296b28d52d793c3ed0757786969365"
- uses: actions/cache@v5.0.5
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Setup python
uses: actions/setup-python@v6.2.0
with:
python-version: '3.11'
- name: Setup uv
uses: astral-sh/setup-uv@v8.1.0
- name: Check version metadata
run: python python/check_version_consistency.py
- name: Build and test
working-directory: ./python
run: bash build_and_test.sh