-
Notifications
You must be signed in to change notification settings - Fork 7
45 lines (42 loc) · 1.11 KB
/
main.yml
File metadata and controls
45 lines (42 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
40
41
42
43
44
45
name: CI
on: [push, pull_request]
jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.9'
- name: Install dependencies
run: |
python3 -m pip install pre-commit
pre-commit install
- name: Run pre-commit against all the files
run: pre-commit run --all-files
test:
runs-on: ubuntu-latest
strategy:
matrix:
python: ['3.7', '3.8', '3.9', '3.x']
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Setup Python ${{ matrix.python }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
- name: Install dependencies
run: make dev-install
- name: Run tests
run: make test
- name: Run tests and collect coverage
run: make test-coverage
- name: Codecov
uses: codecov/codecov-action@v3.1.1
with:
flags: all