Skip to content

Commit 1d255a6

Browse files
committed
Add test workflow
1 parent dad15b3 commit 1d255a6

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/test.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Test everything
2+
3+
on:
4+
schedule:
5+
# Weekly, at 03:00 on Monday UTC
6+
- cron: "0 3 * * 1"
7+
pull_request:
8+
push:
9+
branches:
10+
- main
11+
workflow_dispatch:
12+
13+
jobs:
14+
test:
15+
runs-on: ubuntu-24.04
16+
timeout-minutes: 5
17+
18+
steps:
19+
- name: Checkout Repo ⚡️
20+
uses: actions/checkout@v4
21+
with:
22+
fetch-depth: 0
23+
24+
- name: Set Up Python 🐍
25+
uses: actions/setup-python@v5
26+
with:
27+
python-version: 3.12
28+
29+
- name: Build Python Extension 🛠️
30+
run: python3 src/setup.py build
31+
- name: Install Python Extension 📦
32+
run: python3 src/setup.py install
33+
34+
- name: Run Benchmarks 📊
35+
run: python3 -m pytest tests/test_benchmark.py --verbose

0 commit comments

Comments
 (0)