Skip to content

Commit e89e87c

Browse files
committed
Adds test workflow
1 parent ef4d418 commit e89e87c

1 file changed

Lines changed: 69 additions & 0 deletions

File tree

.github/workflows/unit-test.yml

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
name: test
2+
3+
on:
4+
workflow_call:
5+
workflow_dispatch:
6+
push:
7+
branches: ["main", "tester/*"]
8+
pull_request:
9+
branches: ["main"]
10+
11+
jobs:
12+
test-package:
13+
runs-on: ${{ matrix.os }}
14+
15+
strategy:
16+
matrix:
17+
name: [
18+
"ubuntu-python-3-10",
19+
"ubuntu-python-3-11",
20+
"ubuntu-python-3-12",
21+
"ubuntu-python-3-13",
22+
23+
"macos-python-3-10",
24+
"macos-python-3-11",
25+
"macos-python-3-12",
26+
"macos-python-3-13"
27+
]
28+
29+
include:
30+
- name: "ubuntu-python-3-10"
31+
python-version: "3.10"
32+
os: ubuntu-latest
33+
- name: "ubuntu-python-3-11"
34+
python-version: "3.11"
35+
os: ubuntu-latest
36+
- name: "ubuntu-python-3-12"
37+
python-version: "3.12"
38+
os: ubuntu-latest
39+
- name: "ubuntu-python-3-13"
40+
python-version: "3.13"
41+
os: ubuntu-latest
42+
43+
- name: "macos-python-3-10"
44+
python-version: "3.10"
45+
os: macos-latest
46+
- name: "macos-python-3-11"
47+
python-version: "3.11"
48+
os: macos-latest
49+
- name: "macos-python-3-12"
50+
python-version: "3.12"
51+
os: macos-latest
52+
- name: "macos-python-3-13"
53+
python-version: "3.13"
54+
os: macos-latest
55+
56+
steps:
57+
- uses: actions/checkout@v3
58+
- name: Set up Python ${{ matrix.python-version }}
59+
uses: actions/setup-python@v3
60+
with:
61+
python-version: ${{ matrix.python-version }}
62+
- name: Install uv
63+
run: make install-uv
64+
- name: Create virtual environment
65+
run: uv venv --python=python
66+
- name: Install local package
67+
run: make install-local-package
68+
- name: Test package
69+
run: make test

0 commit comments

Comments
 (0)