Skip to content

Commit e9583c6

Browse files
committed
ci: add test workflow
1 parent e462ea8 commit e9583c6

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/test.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: 'test'
2+
3+
on:
4+
push:
5+
paths:
6+
- 'pyfpga/**'
7+
- 'tests/**'
8+
9+
jobs:
10+
test:
11+
strategy:
12+
matrix:
13+
pyver: ['3.8', '3.9', '3.10', '3.11', '3.12']
14+
runs-on: ubuntu-latest
15+
name: ${{ matrix.pyver }}
16+
steps:
17+
- name: Checkout repository
18+
uses: actions/checkout@v4
19+
- name: Set up Python ${{ matrix.pyver }}
20+
uses: actions/setup-python@v5
21+
with:
22+
python-version: ${{ matrix.pyver }}
23+
- name: Install dependencies
24+
run: pip install . && pip install pytest
25+
- name: Run tests
26+
run: make test

0 commit comments

Comments
 (0)