-
Notifications
You must be signed in to change notification settings - Fork 8
38 lines (37 loc) · 893 Bytes
/
build.yml
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
name: CI
on: [pull_request, push]
jobs:
ci:
name: CI
strategy:
matrix:
os:
- macos-latest
- ubuntu-latest
- windows-latest
python:
- 3.7
- 3.8
- 3.9
runs-on: ${{ matrix.os }}
steps:
- name: Check out
uses: actions/checkout@v2
- name: Setup python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}
- name: Install prerequisites
run:
python -m pip install mypy coverage
- name: Type check
run:
python -m mypy -p bdemeta -m tests.cmake_parser
- name: Run unit tests
run:
python -m coverage run -m unittest
- name: Generate coverage
run:
python -m coverage xml
- name: Send to codecov
uses: codecov/codecov-action@v1