Skip to content

Commit 0e5e4ca

Browse files
committed
Add action to test package
1 parent 07d14c8 commit 0e5e4ca

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Style and unit tests
2+
3+
on:
4+
push:
5+
branches: ["main"]
6+
pull_request:
7+
branches: ["main"]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
strategy:
13+
fail-fast: false
14+
matrix:
15+
python-version: ["3.12", "3.13"]
16+
17+
steps:
18+
- uses: actions/checkout@v4
19+
- name: Set up Python ${{ matrix.python-version }}
20+
uses: actions/setup-python@v3
21+
with:
22+
python-version: ${{ matrix.python-version }}
23+
- name: Install dependencies
24+
run: |
25+
python -m pip install --upgrade pip
26+
pip install .
27+
pip install .[dev]
28+
- name: Style and formatting (ruff)
29+
run: |
30+
ruff check .
31+
- name: Unit and integration tests (pytest)
32+
run: |
33+
pytest
34+
- name: Mypy Check
35+
uses: jpetrucciani/[email protected]

0 commit comments

Comments
 (0)