Skip to content

Commit 1e893ec

Browse files
committed
Add GitHub Actions CI for automated testing
- Run tests on push and pull requests - Test on Python 3.9, 3.10, 3.11, 3.12 - Uses ubuntu-latest for fast execution
1 parent 3b6756b commit 1e893ec

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

.github/workflows/tests.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Tests
2+
3+
on:
4+
push:
5+
branches: [main, dev]
6+
pull_request:
7+
branches: [main, dev]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
python-version: ['3.9', '3.10', '3.11', '3.12']
15+
16+
steps:
17+
- name: Checkout repository
18+
uses: actions/checkout@v4
19+
20+
- name: Set up Python ${{ matrix.python-version }}
21+
uses: actions/setup-python@v5
22+
with:
23+
python-version: ${{ matrix.python-version }}
24+
25+
- name: Install dependencies
26+
run: |
27+
python -m pip install --upgrade pip
28+
pip install -r requirements-dev.txt
29+
pip install pyzmq
30+
31+
- name: Run tests
32+
run: pytest -v

0 commit comments

Comments
 (0)