Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
镜像
Python_Packaging_Authority
pip
提交
f6457b7b
P
pip
项目概览
镜像
/
Python_Packaging_Authority
/
pip
12 个月 前同步成功
通知
0
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
pip
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
f6457b7b
编写于
4月 02, 2020
作者:
P
Pradyun Gedam
提交者:
GitHub
4月 02, 2020
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #7954 from pradyunsg/simplify-linting-github-action
Simplify our Linting GitHub Action
上级
2a1f3c22
28389e83
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
54 addition
and
0 deletion
+54
-0
.github/workflows/linting.yml
.github/workflows/linting.yml
+54
-0
未找到文件。
.github/workflows/
python-linters
.yml
→
.github/workflows/
linting
.yml
浏览文件 @
f6457b7b
name
:
>-
🤖
Code quality
name
:
Linting
on
:
push
:
pull_request
:
schedule
:
# Run every Friday at 18:02 UTC
# https://crontab.guru/#2_18_*_*_5
-
cron
:
2 18 * *
5
jobs
:
linters
:
name
:
>-
${{ matrix.env.TOXENV }}/${{ matrix.python-version }}@${{ matrix.os }}
runs-on
:
${{ matrix.os }}
lint
:
name
:
${{ matrix.os }}
runs-on
:
${{ matrix.os }}-latest
env
:
TOXENV
:
lint,docs,vendoring
strategy
:
# max-parallel: 5
matrix
:
python-version
:
-
3.8
os
:
-
ubuntu-latest
-
windows-latest
-
macos-latest
env
:
-
TOXENV
:
docs
-
TOXENV
:
lint
-
TOXENV
:
vendoring
env
:
TOX_PARALLEL_NO_SPINNER
:
1
-
Ubuntu
-
Windows
-
MacOS
steps
:
-
uses
:
actions/checkout@
master
-
name
:
Set up Python
${{ matrix.python-version }}
-
uses
:
actions/checkout@
v2
-
name
:
Set up Python
3.8
uses
:
actions/setup-python@v1
with
:
python-version
:
${{ matrix.python-version }}
-
name
:
Log Python version
run
:
>-
python --version
-
name
:
Log Python location
run
:
>-
which python
-
name
:
Log Python env
run
:
>-
python -m sysconfig
-
name
:
Pip cache
python-version
:
3.8
# Setup Caching
-
name
:
pip cache
uses
:
actions/cache@v1
with
:
path
:
~/.cache/pip
...
...
@@ -55,43 +37,18 @@ jobs:
restore-keys
:
|
${{ runner.os }}-pip-
${{ runner.os }}-
-
name
:
set PY
-
name
:
Set PY (for pre-commit cache)
run
:
echo "::set-env name=PY::$(python -c 'import hashlib, sys;print(hashlib.sha256(sys.version.encode()+sys.executable.encode()).hexdigest())')"
-
uses
:
actions/cache@v1
-
name
:
pre-commit cache
uses
:
actions/cache@v1
with
:
path
:
~/.cache/pre-commit
key
:
pre-commit|2020-02-14|${{ env.PY }}|${{ hashFiles('.pre-commit-config.yaml') }}
-
name
:
Pre-configure global Git settings
run
:
|
git config --global user.email "pypa-dev@googlegroups.com"
git config --global user.name "pip"
-
name
:
Update setuptools
run
:
>-
python -m pip install --upgrade setuptools
# Get the latest tox
-
name
:
Install tox
run
:
>-
python -m pip install --upgrade tox tox-venv
-
name
:
Log the list of packages
run
:
>-
python -m pip freeze --all
-
name
:
'
Initialize
tox
envs:
${{
matrix.env.TOXENV
}}'
run
:
>-
python -m
tox
--parallel auto
--notest
--skip-missing-interpreters false
env
:
${{ matrix.env }}
-
name
:
Pre-fetch pre-commit hooks
# This is to separate test step from deps install
if
:
matrix.env.TOXENV == 'lint'
run
:
>-
.tox/lint/${{ runner.os == 'Windows' && 'Scripts' || 'bin' }}/python -m
pre_commit
install-hooks
-
name
:
Test with tox
run
:
>-
python -m
tox
--parallel auto
env
:
${{ matrix.env }}
run
:
python -m pip install tox
# Main check
-
run
:
python -m tox
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录