Skip to content

Commit 7e3b262

Browse files
ci: add tests.yaml
1 parent 3986795 commit 7e3b262

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/tests.yaml

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

0 commit comments

Comments
 (0)