Skip to content

Commit e022a2a

Browse files
committed
#3 Add work for tests
1 parent e225f42 commit e022a2a

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

.github/workflows/tests.yaml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Tests
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
jobs:
12+
job:
13+
name: Test (Python ${{ matrix.python }})
14+
runs-on: ubuntu-latest
15+
env:
16+
POETRY_VIRTUALENVS_CREATE: false
17+
strategy:
18+
fail-fast: false
19+
matrix:
20+
python: ["3.9", "3.10", "3.11", "3.12"]
21+
steps:
22+
- uses: actions/checkout@v3
23+
- uses: actions/setup-python@v4
24+
with:
25+
python-version: ${{ matrix.python }}
26+
- name: Install project dependencies
27+
run: pip install poetry && poetry install
28+
- name: Test code's formatting (Black)
29+
run: black --check deshima_rawdata tests
30+
- name: Test code's typing (Pyright)
31+
run: pyright deshima_rawdata tests
32+
- name: Test code's execution (pytest)
33+
run: pytest -v tests

0 commit comments

Comments
 (0)