-
Notifications
You must be signed in to change notification settings - Fork 2
39 lines (37 loc) · 1.11 KB
/
tests.yml
File metadata and controls
39 lines (37 loc) · 1.11 KB
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
37
38
39
name: build
on: [push]
jobs:
check-format:
name: Check python format with black
runs-on: ubuntu-latest
strategy:
matrix:
python_version: ["3.7"]
steps:
- uses: actions/checkout@master
- name: Setup python
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python_version }}
architecture: x64
- name: Install dependancies
run: pip install -r requirements.txt -r dev-requirements.txt
- name: Check python format
run: black --check campbot
test:
name: Test on python ${{ matrix.python_version }}
runs-on: ubuntu-latest
strategy:
matrix:
python_version: ["3.6", "3.7", "3.8", "3.9", "3.10"]
steps:
- uses: actions/checkout@master
- name: Setup python
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python_version }}
architecture: x64
- name: Install dependancies
run: pip install -r requirements.txt -r dev-requirements.txt
- name: Run python tests
run: pytest --cov campbot --cov-report=term