@@ -11,14 +11,14 @@ concurrency:
1111 cancel-in-progress : true
1212
1313jobs :
14- tests :
15- name : tests
14+ unit- tests :
15+ name : unit tests
1616 runs-on : ubuntu-latest
1717 strategy :
1818 matrix :
1919 python-version : ["3.10", "3.11", "3.12", "3.13", "3.14"]
2020 steps :
21- - uses : actions/checkout@v4
21+ - uses : actions/checkout@v6
2222 - name : Set up Python
2323 uses : actions/setup-python@v5
2424 with :
@@ -27,23 +27,58 @@ jobs:
2727 run : |
2828 python -m pip install --upgrade pip
2929 pip install ".[test]"
30- - name : Test
30+ - name : Run unit tests
3131 run : |
3232 pytest tests -v
33- - name : Examples (internal)
33+
34+ internal-examples :
35+ name : internal examples
36+ runs-on : ubuntu-latest
37+ strategy :
38+ matrix :
39+ python-version : ["3.10", "3.11", "3.12", "3.13", "3.14"]
40+ steps :
41+ - uses : actions/checkout@v6
42+ - name : Set up Python
43+ uses : actions/setup-python@v5
44+ with :
45+ python-version : ${{ matrix.python-version }}
46+ - name : Install
47+ run : |
48+ python -m pip install --upgrade pip
49+ pip install ".[test]"
50+ - name : Run internal examples
3451 run : |
3552 python examples/fodo.py
36- - name : Examples (external)
53+
54+ upstream-examples :
55+ name : upstream examples
56+ runs-on : ubuntu-latest
57+ strategy :
58+ matrix :
59+ python-version : ["3.10", "3.11", "3.12", "3.13", "3.14"]
60+ steps :
61+ - uses : actions/checkout@v6
62+ with :
63+ fetch-depth : 1
64+ - name : Checkout upstream PALS repo
65+ uses : actions/checkout@v6
66+ with :
67+ repository : pals-project/pals
68+ path : pals_temp
69+ fetch-depth : 1
70+ sparse-checkout : |
71+ examples/
72+ - name : Set up Python
73+ uses : actions/setup-python@v5
74+ with :
75+ python-version : ${{ matrix.python-version }}
76+ - name : Install
77+ run : |
78+ python -m pip install --upgrade pip
79+ pip install ".[test]"
80+ - name : Run upstream examples
3781 run : |
38- # Copy examples directory from the main PALS repository
39- cd examples
40- git clone --no-checkout https://github.com/pals-project/pals.git pals_temp
41- cd pals_temp
42- git sparse-checkout init
43- git sparse-checkout set examples/
44- git checkout main
45- # Test all external examples
46- cd -
4782 for file in pals_temp/examples/*.pals.yaml; do
48- python test_external_examples .py --path "${file}"
83+ python test_upstream_examples .py --path "${file}"
4984 done
0 commit comments