-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (36 loc) · 952 Bytes
/
build.yaml
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
29
30
31
32
33
34
35
36
name: Build
on:
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- python-version: 3.6
python-version-str: "py36"
- python-version: 3.7
python-version-str: "py37"
- python-version: 3.8
python-version-str: "py38"
- python-version: 3.9
python-version-str: "py39"
steps:
- uses: actions/checkout@v2
- name: Set up ${{ matrix.python-version-str }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Run Black
run: |
python -m pip install black
black --check --diff src tests
- name: Install dependencies, for extras and tests too
run: |
python -m pip install --upgrade pip
pip install .[tests]
- name: Test with pytest
run: |
pytest