-
Notifications
You must be signed in to change notification settings - Fork 0
69 lines (59 loc) · 2.38 KB
/
Copy pathci.yml
File metadata and controls
69 lines (59 loc) · 2.38 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
name: CI
on:
push:
branches: [main]
pull_request:
permissions:
contents: read
env:
PYTHON_VERSION: "3.14"
RUST_VERSION: "1.95.0"
jobs:
ci-local:
name: local CI gate
runs-on: ${{ github.server_url == 'https://github.com' && 'ubuntu-latest' || 'rust' }}
steps:
- name: Checkout solverforge-py
uses: actions/checkout@v6
- name: Set up Python
shell: bash
run: |
curl --retry 5 --retry-all-errors --retry-delay 5 \
-LsSf https://astral.sh/uv/install.sh | sh
echo "${HOME}/.local/bin" >> "${GITHUB_PATH}"
"${HOME}/.local/bin/uv" python install "${PYTHON_VERSION}"
host_python="$("${HOME}/.local/bin/uv" python find "${PYTHON_VERSION}")"
host_python_dir="$(dirname "${host_python}")"
host_python_libdir="$("${host_python}" -c 'import sysconfig; print(sysconfig.get_config_var("LIBDIR") or "")')"
echo "${host_python_dir}" >> "${GITHUB_PATH}"
echo "HOST_PYTHON=${host_python}" >> "${GITHUB_ENV}"
echo "PYO3_PYTHON=${host_python}" >> "${GITHUB_ENV}"
echo "PYTHON_SYS_EXECUTABLE=${host_python}" >> "${GITHUB_ENV}"
echo "LIBRARY_PATH=${host_python_libdir}:${LIBRARY_PATH:-}" >> "${GITHUB_ENV}"
echo "LD_LIBRARY_PATH=${host_python_libdir}:${LD_LIBRARY_PATH:-}" >> "${GITHUB_ENV}"
"${host_python}" --version
- name: Set up Rust
shell: bash
run: |
curl --retry 5 --retry-all-errors --retry-delay 5 \
--proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs \
| sh -s -- -y --profile minimal --default-toolchain "${RUST_VERSION}" \
--component rustfmt --component clippy
if [ -f "${HOME}/.cargo/env" ]; then
. "${HOME}/.cargo/env"
echo "${HOME}/.cargo/bin" >> "${GITHUB_PATH}"
else
. /usr/local/cargo/env
echo "/usr/local/cargo/bin" >> "${GITHUB_PATH}"
fi
rustc --version
cargo --version
- name: Validate SolverForge release base
run: make release-base-check
- name: Install Playwright system dependencies
if: ${{ runner.os == 'Linux' }}
run: make install-playwright-system-deps
- name: Run local CI
run: make ci-local
- name: Build and verify local distributions
run: make build-dist dist-check smoke-wheel