-
Notifications
You must be signed in to change notification settings - Fork 135
55 lines (46 loc) · 1.24 KB
/
build.yml
File metadata and controls
55 lines (46 loc) · 1.24 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
name: Build and Test
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: ['3.9', '3.10', '3.11']
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install UV
run: |
pip install uv
shell: bash
- name: Install dependencies
run: |
# Create venv with the correct syntax
uv venv
# Install dependencies directly with UV
if [ "$RUNNER_OS" == "Windows" ]; then
uv pip install -e ".[dev]"
else
uv pip install -e ".[dev]"
fi
shell: bash
# - name: Lint with flake8
# run: |
# uv pip install flake8 # Ensure flake8 is installed
# uv run flake8 python_a2a
# shell: bash
- name: Test with pytest
run: |
uv pip install pytest # Ensure pytest is installed
uv run pytest
shell: bash