forked from spinframework/spin-python-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
29 lines (25 loc) · 683 Bytes
/
Copy pathbuild.yml
File metadata and controls
29 lines (25 loc) · 683 Bytes
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
name: Build
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Spin
uses: fermyon/actions/spin/setup@v1
with:
# TODO: Switch to Spin 4.0 when it's available
version: "canary"
- name: Build examples and run tests
run: |
python -m venv venv
source venv/bin/activate
pip install componentize-py==0.22.0 http-router==4.1.2 build==1.4.2 mypy==1.13
python -m build
pip install dist/spin_sdk-4.0.0-py3-none-any.whl
bash run_tests.sh