-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (40 loc) · 1.39 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
53
# SPDX-FileCopyrightText: 2022 Benedikt Fein
#
# SPDX-License-Identifier: EUPL-1.2
name: CI
on: [push, pull_request]
jobs:
ci:
strategy:
fail-fast: false
matrix:
python-version: ["3.11", "3.12"]
poetry-version: ["latest"]
os: ["ubuntu-latest"]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Setup Poetry
uses: abatilo/[email protected]
with:
poetry-version: ${{ matrix.poetry-version }}
- name: Install dependencies
run: poetry install
- name: Check imports with isort
run: poetry run isort --check-only . --profile black
- name: Check formatting with black
run: poetry run black --diff --check .
- name: Check typing with mypy
run: poetry run mypy spring_yaml_to_env tests
- name: Linting with ruff
run: poetry run ruff check .
- name: Check docstrings with darglint
run: poetry run darglint2 -s sphinx -v 2 spring_yaml_to_env/*.py
- name: Run tests
run: poetry run pytest --cov=spring_yaml_to_env --cov=tests --cov-branch --cov-report=term-missing tests/
- name: Check reuse
run: poetry run reuse lint