forked from kasium/pylint-per-file-ignores
-
Notifications
You must be signed in to change notification settings - Fork 4
50 lines (47 loc) · 1.28 KB
/
main.yml
File metadata and controls
50 lines (47 loc) · 1.28 KB
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
name: CI
permissions:
contents: read
actions: read
id-token: write
pull-requests: write
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
ci-pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-python@v5
with:
python-version: 3.13.0
- name: Install project
run: pip install --group dev --group test -e .
- name: run pre-commit
run: pre-commit run --all
ci-test:
strategy:
fail-fast: false
matrix:
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13', 3.14.0-beta.2]
pylint-version: [3.3.*, 3.*]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install project
run: pip install --group test -e .
- name: Install pylint
run: pip install -U pylint==${{ matrix.pylint-version }}
- name: run tests (with coverage)
run: pytest --cov --cov-report xml --cov-config pyproject.toml test/
- name: run diff-cover
run: diff-cover --config-file pyproject.toml coverage.xml