forked from facultyai/faculty-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (39 loc) · 869 Bytes
/
Copy pathtests.yaml
File metadata and controls
43 lines (39 loc) · 869 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Tests
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python: [3.7, 3.8, 3.9, '3.10', 3.11]
steps:
- uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python }}
- name: Install Tox
run: pip install tox
- name: Run tests
run: tox -e py
lint:
runs-on: ubuntu-latest
strategy:
matrix:
linter: [flake8, black, license]
steps:
- uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v1
with:
python-version: 3.9
- name: Install Tox
run: pip install tox
- name: Run linter
run: tox -e ${{ matrix.linter }}