-
Notifications
You must be signed in to change notification settings - Fork 53
43 lines (40 loc) · 1.11 KB
/
Copy pathtest-examples.yml
File metadata and controls
43 lines (40 loc) · 1.11 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
name: Test Examples
on: [push, pull_request]
permissions: {}
jobs:
examples:
runs-on: ubuntu-22.04
permissions:
contents: read
strategy:
matrix:
python: ["3.8", "3.13"]
click: [8.0.*, 8.1.*, 8.2.*, 8.3.*]
exclude:
- python: "3.8"
click: 8.2.*
- python: "3.8"
click: 8.3.*
steps:
- name: Check out the repo
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
persist-credentials: false
- name: Set up Python
uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0
with:
python-version: ${{ matrix.python }}
activate-environment: true
- name: Install dependencies
run: |
uv pip install --editable "."
uv pip install --upgrade "click==$CLICK_VERSION"
env:
CLICK_VERSION: ${{ matrix.click }}
- name: Test examples
run: |
for f in examples/*py
do
echo -e "\n\n$f"
python "${f}" --help || exit 1;
done