Skip to content
GitLab
探索
项目
群组
代码片段
项目
群组
代码片段
/
帮助
帮助
支持
社区论坛
快捷键
?
提交反馈
登录
切换导航
菜单
打开侧边栏
ExternalRepo
isort
提交
074dbd3b
提交
074dbd3b
编辑于
2年前
作者:
staticdev
浏览文件
操作
下载
电子邮件补丁
差异文件
Make steps consistent accross workflows
上级
ed49e7f4
ci/release-workflow
无相关合并请求
变更
4
Hide whitespace changes
Inline
Side-by-side
显示
4 个更改的文件
.github/workflows/integration.yml
+16
-6
.github/workflows/integration.yml
.github/workflows/lint.yml
+16
-6
.github/workflows/lint.yml
.github/workflows/release.yml
+1
-1
.github/workflows/release.yml
.github/workflows/tests.yml
+24
-16
.github/workflows/tests.yml
有
57 个添加
和
29 个删除
+57
-29
.github/workflows/integration.yml
+
16
-
6
浏览文件 @
074dbd3b
...
...
@@ -7,10 +7,13 @@ jobs:
runs-on
:
ubuntu-latest
strategy
:
matrix
:
python-version
:
[
"
3.
8
"
]
python-version
:
[
"
3.
9
"
]
steps
:
-
uses
:
actions/checkout@v2
-
name
:
Check out the repository
uses
:
actions/checkout@v3
with
:
fetch-depth
:
2
-
name
:
pip cache
uses
:
actions/cache@v2
...
...
@@ -25,11 +28,18 @@ jobs:
with
:
python-version
:
${{ matrix.python-version }}
-
name
:
Install dependencies
-
name
:
Upgrade pip
run
:
|
pip install --constraint=.github/workflows/constraints.txt pip
pip --version
-
name
:
Install Poetry
run
:
|
python -m pip install --upgrade pip
python -m pip install --upgrade poetry
poetry install
pipx install --pip-args=--constraint=.github/workflows/constraints.txt poetry
poetry --version
-
name
:
Install dependencies
run
:
poetry install
-
name
:
Test integration
run
:
./scripts/test_integration.sh
This diff is collapsed.
Click to expand it.
.github/workflows/lint.yml
+
16
-
6
浏览文件 @
074dbd3b
...
...
@@ -7,10 +7,13 @@ jobs:
runs-on
:
ubuntu-latest
strategy
:
matrix
:
python-version
:
[
"
3.
8
"
]
python-version
:
[
"
3.
9
"
]
steps
:
-
uses
:
actions/checkout@v2
-
name
:
Check out the repository
uses
:
actions/checkout@v3
with
:
fetch-depth
:
2
-
name
:
pip cache
uses
:
actions/cache@v2
...
...
@@ -25,11 +28,18 @@ jobs:
with
:
python-version
:
${{ matrix.python-version }}
-
name
:
Install dependencies
-
name
:
Upgrade pip
run
:
|
pip install --constraint=.github/workflows/constraints.txt pip
pip --version
-
name
:
Install Poetry
run
:
|
python -m pip install --upgrade pip
python -m pip install --upgrade poetry
poetry install
pipx install --pip-args=--constraint=.github/workflows/constraints.txt poetry
poetry --version
-
name
:
Install dependencies
run
:
poetry install
# Temporaryly disabled due to circular depencies
# - name: Lint
...
...
This diff is collapsed.
Click to expand it.
.github/workflows/release.yml
+
1
-
1
浏览文件 @
074dbd3b
...
...
@@ -18,7 +18,7 @@ jobs:
-
name
:
Set up Python
uses
:
actions/setup-python@v4
with
:
python-version
:
"
3.
11
"
python-version
:
"
3.
9
"
-
name
:
Upgrade pip
run
:
|
...
...
This diff is collapsed.
Click to expand it.
.github/workflows/test.yml
→
.github/workflows/test
s
.yml
+
24
-
16
浏览文件 @
074dbd3b
...
...
@@ -3,25 +3,27 @@ name: Test
on
:
[
push
,
pull_request
]
jobs
:
build
:
tests
:
runs-on
:
${{ matrix.os }}
strategy
:
fail-fast
:
false
matrix
:
python
-version
:
[
"
3.6"
,
"
3.7"
,
"
3.8"
,
"
3.9"
,
"
3.10"
]
python
:
[
"
3.6"
,
"
3.7"
,
"
3.8"
,
"
3.9"
,
"
3.10"
]
os
:
[
ubuntu-latest
,
ubuntu-18.04
,
macos-latest
,
windows-latest
]
steps
:
-
uses
:
actions/checkout@v2
-
name
:
Check out the repository
uses
:
actions/checkout@v3
-
name
:
Ubuntu cache
uses
:
actions/cache@v2
if
:
startsWith(matrix.os, 'ubuntu')
with
:
path
:
~/.cache/pip
key
:
${{ matrix.os }}-${{ matrix.python
-version
}}-${{ hashFiles('**/pyproject.toml') }}
${{ matrix.os }}-${{ matrix.python }}-${{ hashFiles('**/pyproject.toml') }}
restore-keys
:
|
${{ matrix.os }}-${{ matrix.python
-version
}}-
${{ matrix.os }}-${{ matrix.python }}-
-
name
:
macOS cache
uses
:
actions/cache@v2
...
...
@@ -29,9 +31,9 @@ jobs:
with
:
path
:
~/Library/Caches/pip
key
:
${{ matrix.os }}-${{ matrix.python
-version
}}-${{ hashFiles('**/pyproject.toml') }}
${{ matrix.os }}-${{ matrix.python }}-${{ hashFiles('**/pyproject.toml') }}
restore-keys
:
|
${{ matrix.os }}-${{ matrix.python
-version
}}-
${{ matrix.os }}-${{ matrix.python }}-
-
name
:
Windows cache
uses
:
actions/cache@v2
...
...
@@ -39,19 +41,24 @@ jobs:
with
:
path
:
c:\users\runneradmin\appdata\local\pip\cache
key
:
${{ matrix.os }}-${{ matrix.python
-version
}}-${{ hashFiles('**/pyproject.toml') }}
${{ matrix.os }}-${{ matrix.python }}-${{ hashFiles('**/pyproject.toml') }}
restore-keys
:
|
${{ matrix.os }}-${{ matrix.python
-version
}}-
${{ matrix.os }}-${{ matrix.python }}-
-
name
:
Set up Python ${{ matrix.python
-version
}}
uses
:
actions/setup-python@v
2
-
name
:
Set up Python ${{ matrix.python }}
uses
:
actions/setup-python@v
4
with
:
python-version
:
${{ matrix.python-version }}
python-version
:
${{ matrix.python }}
-
name
:
Upgrade pip
run
:
|
pip install --constraint=.github/workflows/constraints.txt pip
pip --version
-
name
:
Install
p
oetry
-
name
:
Install
P
oetry
run
:
|
python -m
pip install --
upgrade pip
p
ython -m pip install --upgrade poetry
pip
x
install --
pip-args=--constraint=.github/workflows/constraints.txt poetry
p
oetry --version
-
name
:
Install dependencies
run
:
poetry install
...
...
@@ -61,6 +68,7 @@ jobs:
run
:
|
poetry run pytest tests/unit/ -s --cov=isort/ --cov-report=term-missing ${@-}
poetry run coverage xml
-
name
:
Report Coverage
if
:
matrix.os == 'ubuntu-latest' && matrix.python-version == '3.
8
'
if
:
matrix.os == 'ubuntu-latest' && matrix.python-version == '3.
9
'
uses
:
codecov/codecov-action@v1
This diff is collapsed.
Click to expand it.
编辑
预览
支持
Markdown
0%
请重试
或
添加新附件
.
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录
菜单
探索
项目
群组
代码片段