-
Notifications
You must be signed in to change notification settings - Fork 1
55 lines (53 loc) · 1.33 KB
/
ci.yaml
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
50
51
52
53
54
55
---
name: Run checks
on: # yamllint disable-line rule:truthy
push:
branches: [main]
pull_request:
jobs:
flake8:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: python -m pip install -U flake8 flake8-pyproject pep8-naming
- run: python -m flake8
mypy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: python -m pip install -U mypy
- run: python -m mypy -p aioraven --strict
pydocstyle:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: python -m pip install -U pydocstyle[toml]
- run: python -m pydocstyle
test:
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
python: ['3.9', '3.10', '3.11']
runs-on: ${{matrix.os}}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{matrix.python}}
- run: >
python -m pip install -e .
pytest
pytest-asyncio
pytest-cov
pytest-timeout
- run: >
python -m pytest test
--cov
--cov-report xml:coverage.xml
--timeout=2
- uses: codecov/codecov-action@v3
yamllint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: yamllint .