Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
后端镜像
Pdm
提交
e40c5838
P
Pdm
项目概览
后端镜像
/
Pdm
通知
0
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
Pdm
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
未验证
提交
e40c5838
编写于
2月 25, 2020
作者:
F
Frost Ming
提交者:
GitHub
2月 25, 2020
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #59 from frostming/improve-ci
add release pipeline
上级
4ebdbdf8
8069de66
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
53 addition
and
24 deletion
+53
-24
.github/workflows/ci.yml
.github/workflows/ci.yml
+12
-24
.github/workflows/release.yml
.github/workflows/release.yml
+41
-0
未找到文件。
.github/workflows/
.
ci.yml
→
.github/workflows/ci.yml
浏览文件 @
e40c5838
...
...
@@ -16,13 +16,13 @@ jobs:
run
:
|
pip install pre-commit
pre-commit run --all-files
Unix
Testing
:
Testing
:
needs
:
Linting
runs-on
:
${{ matrix.os }}
strategy
:
matrix
:
python-version
:
[
3.7
,
3.8
]
os
:
[
ubuntu-latest
,
macOS-latest
]
os
:
[
ubuntu-latest
,
macOS-latest
,
windows-latest
]
steps
:
-
uses
:
actions/checkout@v2
...
...
@@ -32,36 +32,24 @@ jobs:
uses
:
actions/setup-python@v1
with
:
python-version
:
${{ matrix.python-version }}
-
name
:
Cache packages
uses
:
actions/cache@v1
with
:
path
:
__pypackages__
# Look to see if there is a cache hit for the corresponding requirements file
key
:
${{ matrix.os }}-packages-${{ matrix.python-version }}-${{ hashFiles('pdm.lock') }}
-
name
:
Install editable PDM
run
:
|
pip install wheel
python setup_dev.py
-
name
:
Test
-
name
:
Test Unix
if
:
matrix.os != 'windows-latest'
shell
:
bash
run
:
|
pdm="__pypackages__/${{ matrix.python-version }}/bin/pdm"
$pdm run pytest -n auto tests
WindowsTesting
:
needs
:
Linting
runs-on
:
windows-latest
strategy
:
matrix
:
python-version
:
[
3.7
,
3.8
]
steps
:
-
uses
:
actions/checkout@v2
with
:
lfs
:
true
-
name
:
Set up Python ${{ matrix.python-version }}
uses
:
actions/setup-python@v1
with
:
python-version
:
${{ matrix.python-version }}
-
name
:
Install editable PDM
run
:
|
pip install wheel
python setup_dev.py
-
name
:
Test
-
name
:
Test Windows
if
:
matrix.os == 'windows-latest'
run
:
|
Set-Variable -Name pdm -Value "__pypackages__/${{ matrix.python-version }}/Scripts/pdm"
& $pdm run pytest -n auto tests
.github/workflows/release.yml
0 → 100644
浏览文件 @
e40c5838
name
:
Release
on
:
push
:
tags
:
-
v*
jobs
:
release-pypi
:
name
:
release-pypi
runs-on
:
ubuntu-latest
steps
:
-
uses
:
actions/checkout@v2
-
uses
:
actions/setup-python@v1
with
:
python-version
:
3.7
architecture
:
'
x64'
-
name
:
Cache packages
uses
:
actions/cache@v1
with
:
path
:
__pypackages__
# Look to see if there is a cache hit for the corresponding requirements file
key
:
release-packages-${{ hashFiles('pdm.lock') }}
-
name
:
Install editable PDM
run
:
|
pip install wheel
python setup_dev.py
-
name
:
Build artifacts
run
:
|
__pypackages__/3.7/bin/pdm build -v
-
name
:
Test Build
run
:
|
python3 -m venv fresh_env
. fresh_env/bin/activate
pip install dist/*.whl
pdm --help
-
name
:
Upload to Pypi
run
:
|
pip install twine
twine upload --username __token__ --password ${{ secrets.PYPI_TOKEN }} dist/*
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录