为 KMD 添加颜色的快捷构造 #27
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI for KaiHeiLaCardBuilder | |
on: | |
push: | |
paths: | |
- ".github/**" | |
- "khl_card/**" | |
- "*.py" | |
jobs: | |
assemble: | |
runs-on: ubuntu-latest | |
name: Assemble a dev source compressed file | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Create Dev Build | |
run: | | |
mkdir KaiHeiLaCardBuilder | |
mv * KaiHeiLaCardBuilder || true | |
cd KaiHeiLaCardBuilder | |
rm -rf .git tests | |
rm -f .gitignore setup.py MANIFEST.in *.md | |
cd .. | |
zip -r KaiHeiLaCardBuilder-dev.zip ./KaiHeiLaCardBuilder | |
- uses: actions/upload-artifact@v2 | |
with: | |
name: KaiHeiLaCardBuilder dev source for ${{ github.sha }} | |
path: KaiHeiLaCardBuilder-dev.zip | |
build: | |
runs-on: ubuntu-latest | |
name: Build with python ${{ matrix.python-version }} | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.8 | |
- uses: actions/cache@v2 | |
with: | |
path: ~/.cache/pip | |
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }} | |
restore-keys: | | |
${{ runner.os }}-pip- | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install setuptools wheel | |
- name: Create distribution | |
run: | | |
python setup.py sdist bdist_wheel | |
- uses: actions/upload-artifact@v2 | |
with: | |
name: KaiHeiLaCardBuilder package distribution for ${{ github.sha }} | |
path: dist/ |