Skip to content

Commit 46bdcbb

Browse files
committed
ci: Add initial test workflow
Signed-off-by: Nick Diego Yamane <[email protected]>
1 parent d1adcd1 commit 46bdcbb

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/test.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Test
2+
3+
on: [push, pull_request, workflow_dispatch]
4+
5+
jobs:
6+
test:
7+
runs-on: ${{ matrix.os }}
8+
strategy:
9+
fail-fast: false
10+
matrix:
11+
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
12+
os: [ubuntu-latest]
13+
14+
steps:
15+
- uses: actions/checkout@v2
16+
- name: Set up Python ${{ matrix.python-version }}
17+
uses: actions/setup-python@v2
18+
with:
19+
python-version: ${{ matrix.python-version }}
20+
21+
- name: Install dependencies
22+
run: |
23+
python -m pip install -U pip
24+
python -m pip install ".[dev]"
25+
26+
- name: Test
27+
run: |
28+
python -m pytest

0 commit comments

Comments
 (0)