-
Notifications
You must be signed in to change notification settings - Fork 0
68 lines (63 loc) · 1.92 KB
/
Copy pathtest.yml
File metadata and controls
68 lines (63 loc) · 1.92 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
56
57
58
59
60
61
62
63
64
65
66
67
68
name: test
on:
push:
branches: [main]
tags: ['v*']
pull_request:
jobs:
basic:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v6
- uses: astral-sh/setup-uv@v8.1.0
- name: smoke — basic example
run: tests/smoke.sh basic
with-matrix:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v6
- uses: astral-sh/setup-uv@v8.1.0
- name: smoke — with-matrix example (DEP_MODE = extra)
run: tests/smoke.sh with-matrix
with-groups:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v6
- uses: astral-sh/setup-uv@v8.1.0
- name: smoke — with-groups example (DEP_MODE = group)
run: tests/smoke.sh with-groups
# Windows runs on tag push only. Matrix cells use `cut` and POSIX shell
# interpolation, so they need Git Bash; windows-latest ships it via the
# Git for Windows install. The basic example by itself isn't enough here
# — the matrix cell recipe is what's most at risk on Windows, so we
# exercise both the extras and groups matrices too.
windows:
if: startsWith(github.ref, 'refs/tags/v')
runs-on: windows-latest
steps:
- uses: actions/checkout@v6
- uses: astral-sh/setup-uv@v8.1.0
- name: Install GNU Make
run: choco install make -y
shell: pwsh
- name: smoke — basic example (Git Bash)
shell: bash
run: tests/smoke.sh basic
- name: smoke — with-matrix example (Git Bash)
shell: bash
run: tests/smoke.sh with-matrix
- name: smoke — with-groups example (Git Bash)
shell: bash
run: tests/smoke.sh with-groups