Skip to content
This repository was archived by the owner on Nov 24, 2023. It is now read-only.

Commit 34f82a0

Browse files
committed
Downgrade isort version to 5.11.x
1 parent 99c7ba7 commit 34f82a0

File tree

3 files changed

+48
-15
lines changed

3 files changed

+48
-15
lines changed

.github/actions/install_dependencies.yml renamed to .github/actions/install_dependencies/action.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ inputs:
44
python_version:
55
description: Version of python to prepare
66
required: false
7-
default: 3.11
7+
default: "3.11"
88

99
runs:
1010
using: "composite"
@@ -15,6 +15,7 @@ runs:
1515
with:
1616
python-version: ${{ inputs.python_version }}
1717
- name: Install dependencies
18+
shell: bash
1819
run: |
1920
python -m pip install --upgrade pip
2021
python -m pip install -r ci_requirements.txt

.github/workflows/quality.yml

Lines changed: 45 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,31 +8,63 @@ on:
88
- 'pyproject.toml'
99

1010
jobs:
11-
quality:
12-
name: Quality
11+
pylint:
12+
name: Python ${{ matrix.python_version }} - pylint check
1313
runs-on: ubuntu-latest
14+
strategy:
15+
fail-fast: false
16+
matrix:
17+
python_version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
1418
steps:
15-
- uses: .github/actions/install_dependencies@main
19+
- uses: actions/checkout@v3
20+
- uses: ./.github/actions/install_dependencies
1621
with:
17-
python_version: 3.11
18-
# - uses: actions/checkout@v3
19-
# - name: Set up Python 3.11
20-
# uses: actions/setup-python@v3
21-
# with:
22-
# python-version: 3.11
23-
# - name: Install dependencies
24-
# run: |
25-
# python -m pip install --upgrade pip
26-
# pip install -r ci_requirements.txt
22+
python_version: ${{ matrix.python_version }}
2723
- name: Run pylint
2824
run: |
2925
pylint --output-format=colorized $(git ls-files '*.py')
26+
mypy:
27+
name: Python ${{ matrix.python_version }} - mypy check
28+
runs-on: ubuntu-latest
29+
strategy:
30+
fail-fast: false
31+
matrix:
32+
python_version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
33+
steps:
34+
- uses: actions/checkout@v3
35+
- uses: ./.github/actions/install_dependencies
36+
with:
37+
python_version: ${{ matrix.python_version }}
3038
- name: Run mypy
3139
run: |
3240
mypy --config-file pyproject.toml .
41+
isort:
42+
name: Python ${{ matrix.python_version }} - isort check
43+
runs-on: ubuntu-latest
44+
strategy:
45+
fail-fast: false
46+
matrix:
47+
python_version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
48+
steps:
49+
- uses: actions/checkout@v3
50+
- uses: ./.github/actions/install_dependencies
51+
with:
52+
python_version: ${{ matrix.python_version }}
3353
- name: Run isort
3454
run: |
3555
isort --settings-file pyproject.toml --check --diff --color .
56+
black:
57+
name: Python ${{ matrix.python_version }} - black check
58+
runs-on: ubuntu-latest
59+
strategy:
60+
fail-fast: false
61+
matrix:
62+
python_version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
63+
steps:
64+
- uses: actions/checkout@v3
65+
- uses: ./.github/actions/install_dependencies
66+
with:
67+
python_version: ${{ matrix.python_version }}
3668
- name: Run black
3769
run: |
3870
black --config pyproject.toml --check --diff --color .

ci_requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
black~=23.3.0
2-
isort[colors]~=5.12.0
2+
isort[colors]~=5.11.0
33
mypy~=1.4.1
44
pylint~=2.17.4

0 commit comments

Comments
 (0)