Skip to content

Commit b066610

Browse files
committed
Add github workflow to run tests and flake8
1 parent 6d5c991 commit b066610

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/tests.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: pytest-unmagic tests
2+
on:
3+
push:
4+
branches: [main]
5+
pull_request:
6+
branches: [main]
7+
8+
jobs:
9+
tests:
10+
runs-on: ubuntu-latest
11+
strategy:
12+
fail-fast: false
13+
matrix:
14+
python: ['3.9', '3.10', '3.11', '3.12', '3.13']
15+
steps:
16+
- uses: actions/checkout@v4
17+
- uses: actions/setup-python@v5
18+
with:
19+
python-version: ${{ matrix.python }}
20+
- name: Setup
21+
run: |
22+
python --version
23+
pip install --upgrade pip flake8
24+
pip install -e .
25+
- name: Run tests
26+
run: pytest
27+
- name: Check style
28+
run: flake8 src/unmagic/ tests/

0 commit comments

Comments
 (0)