Skip to content

Commit aa0edd8

Browse files
committed
Add CI workflow to run tests on PRs and pushes to main
1 parent 98c1157 commit aa0edd8

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

.github/workflows/tests.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# SPDX-FileCopyrightText: 2026 PeARS Project, <community@pearsproject.org>
2+
#
3+
# SPDX-License-Identifier: AGPL-3.0-only
4+
5+
name: Tests
6+
7+
on:
8+
push:
9+
branches:
10+
- main
11+
pull_request:
12+
branches:
13+
- '*'
14+
15+
jobs:
16+
test:
17+
runs-on: ubuntu-latest
18+
19+
steps:
20+
- name: Checkout repository
21+
uses: actions/checkout@v4
22+
23+
- name: Set up Python
24+
uses: actions/setup-python@v5
25+
with:
26+
python-version: '3.12'
27+
cache: 'pip'
28+
29+
- name: Install dependencies
30+
run: pip install -r requirements.txt
31+
32+
- name: Run tests
33+
run: python -m pytest tests/ -v

0 commit comments

Comments
 (0)