-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (29 loc) · 878 Bytes
/
ci.yml
File metadata and controls
37 lines (29 loc) · 878 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
name: CI
on:
workflow_dispatch:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
push:
branches: [master]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
cache: "pip"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install .[tests]
- name: Format check
run: python -m autopep8 --exit-code --diff --max-line-length 120 -r sdiff tests
- name: Lint
run: python -m flake8 --config .flake8 sdiff tests
- name: Test
run: python -m coverage run -m pytest -s --durations=3 --durations-min=0.005
- name: Coverage report
run: python -m coverage report -m