-
Notifications
You must be signed in to change notification settings - Fork 1
49 lines (44 loc) · 1.17 KB
/
ci.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
38
39
40
41
42
43
44
45
46
47
48
49
name: CI
on: [ push, pull_request ]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
OS: [ Ubuntu, macOS, Windows ]
python-version: [ "3.8" ]
include:
- os: Ubuntu
image: ubuntu-22.04
- os: Windows
image: windows-2022
- os: macOS
image: macos-12
fail-fast: false
defaults:
run:
shell: bash
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Static check
run: |
pip install isort==5.11.5 black==22.12.0 mypy==1.9.0
isort --check .
black --check .
mypy .
- name: Test
run: |
pip install .
pip install pytest coverage
coverage run --source=jillw -m pytest -s && coverage report && coverage xml
- name: Python Cov
uses: codecov/codecov-action@v2
with:
files: coverage.xml
token: ${{ secrets.CODECOV_TOKEN }}
verbose: true