Skip to content

Commit

Permalink
S700705: Publish wheels for each GH action (#99)
Browse files Browse the repository at this point in the history
* S700705: Publish wheels for each GH action

* S700705: Add missing run key
  • Loading branch information
hiro727 authored Sep 1, 2022
1 parent c686343 commit 7ff5625
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 3 deletions.
22 changes: 21 additions & 1 deletion .github/workflows/ci_cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,29 @@ jobs:
uses: actions/setup-python@v2
with:
python-version: 3.7
- name: Install dependencies and build the library
- name: Install dependencies
run: |
python -m pip install --upgrade pip flit
python -m pip install -r requirements/requirements_build.txt
- name: Build API
run: |
cd protos
python setup.py bdist_wheel
cp -a dist/. ../dist/
- name: Build Core
run: |
flit build
- name: Validate libraries
run: |
python -m twine check dist/*
- name: Zip libraries
run: |
cd dist
zip -r pyedb.zip *
- name: Upload libraries
uses: actions/upload-artifact@v2
with:
name: pyedb
path: dist/pyedb.zip
retention-days: 14

2 changes: 1 addition & 1 deletion .github/workflows/template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Run a PR title validation
run: grep -E "((T|S|D)[0-9]{6}\:\s[A-Z])" <<< "${{ github.event.pull_request.title }}"
run: grep -E "((T|S|D)[0-9]+\:\s[A-Z])" <<< "${{ github.event.pull_request.title }}"

3 changes: 2 additions & 1 deletion requirements/requirements_build.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
build>=0.7.0
twine>=3.8
twine>=3.8
wheel

0 comments on commit 7ff5625

Please sign in to comment.