-
-
Notifications
You must be signed in to change notification settings - Fork 1
28 lines (27 loc) · 618 Bytes
/
test.yaml
File metadata and controls
28 lines (27 loc) · 618 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
name: Run tests
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
test:
name: Python ${{ matrix.python-version }}
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10"]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -V
pip install --upgrade setuptools build
pip install .[tests]
- name: Run pytest
run: pytest