-
Notifications
You must be signed in to change notification settings - Fork 3
49 lines (48 loc) · 1.33 KB
/
test.yml
File metadata and controls
49 lines (48 loc) · 1.33 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: Tests
on:
workflow_call:
workflow_dispatch:
push:
branches:
- main
pull_request:
paths:
- ".github/workflows/test.yml"
- "src/**"
- "tests/**"
- "pyproject.toml"
jobs:
test-against-python-matrix:
name: PyTest
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
os: [windows-latest, macos-latest, ubuntu-latest]
fail-fast: true
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v5
with:
enable-cache: "true"
- name: Run tests
run: |
uv run -p ${{ matrix.python-version }} --prerelease=allow pytest
test-entry-point:
runs-on: ubuntu-latest
name: Check the configured entry point
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v5
with:
enable-cache: "true"
- name: Set up env
# Allow prerelease if explicitly marked in pyproject.toml so we can prerelease in conjunction
# with engine updates.
run: uv sync --prerelease=explicit
- name: Install package
run: source .venv/bin/activate && uv pip install .
- name: Check entry point
run: source .venv/bin/activate && render-engine init --no-input