-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (43 loc) · 1.42 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
50
51
52
name: ci
on: [push, pull_request, workflow_dispatch]
jobs:
format-markdown:
runs-on: ubuntu-latest
steps:
- name: checkout repo content
uses: actions/checkout@v4
- name: Markdown format check
run: |
npm install -g markdownlint-cli
markdownlint --disable MD013 MD033 MD041 --fix . --ignore CODE_OF_CONDUCT.md
git add -A
git diff --cached --exit-code
test-and-coverage:
strategy:
matrix:
os: [macos-latest, windows-latest, ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- name: checkout repo content
uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install poetry
run: |
pipx install poetry
- name: Check lock file consistency
run: |
poetry check --lock
- name: Install dependencies
run: |
make install
- name: Ruff format check
run: |
make ruff_format_check
- name: Ruff lint check
run: |
make ruff_check
- name: Test
run: |
poetry run pytest -vv --cov=./ --cov-report html