-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (28 loc) · 973 Bytes
/
Copy pathtest-main.yml
File metadata and controls
36 lines (28 loc) · 973 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
30
31
32
33
34
35
36
name: Test against SDK main
# Exercises the example app against the unreleased Castle Python SDK (main
# branch). This is the permanent test/sdk-main branch: every push to it runs
# the suite against the latest main. Nightly/manual runs require this file to
# also live on the default branch (GitHub only honours schedule/workflow_dispatch
# from the default branch).
on:
push:
branches: [test/sdk-main]
workflow_dispatch:
schedule:
- cron: "0 6 * * *"
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: '3.13'
- name: Point the app at the SDK main branch
run: ./scripts/set-sdk-version.sh main
- run: pip install -r requirements-dev.txt
- name: Byte-compile sources
run: python -m py_compile app.py castle_config.py demo_config.py
- name: Run tests
run: pytest