Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nanopb/nanopb.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPetteri Aimonen <jpa@git.mail.kapsi.fi>2022-03-07 21:33:16 +0300
committerPetteri Aimonen <jpa@git.mail.kapsi.fi>2022-03-07 21:33:16 +0300
commit55cdf29a371d723a188447fe96f3beb96c2ae1d4 (patch)
tree2cbefc9437931f892622395b55b76616766bd8a8 /.github
parent8018dc6bedda550c41fbf259791fbcd99983bd9c (diff)
PyPI workflow fixes
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/pypi_publish.yml10
-rw-r--r--.github/workflows/trigger_on_code_change.yml1
-rw-r--r--.github/workflows/trigger_on_schedule.yml2
3 files changed, 11 insertions, 2 deletions
diff --git a/.github/workflows/pypi_publish.yml b/.github/workflows/pypi_publish.yml
index e0031d2..b855c75 100644
--- a/.github/workflows/pypi_publish.yml
+++ b/.github/workflows/pypi_publish.yml
@@ -3,6 +3,9 @@ name: Publish generator package to PyPI / pip
on:
workflow_dispatch:
workflow_call:
+ secrets:
+ PYPI_API_KEY:
+ required: true
jobs:
publish_pypi:
@@ -18,6 +21,7 @@ jobs:
- name: Install dependencies
run: |
+ sudo apt-get update
sudo apt-get install python3-protobuf protobuf-compiler scons
python3 -m pip install --user --upgrade pyinstaller poetry
@@ -32,11 +36,12 @@ jobs:
- name: Publish PyPI package
env:
+ POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_API_KEY }}
POETRY_HTTP_BASIC_PYPI_USERNAME: __token__
POETRY_HTTP_BASIC_PYPI_PASSWORD: ${{ secrets.PYPI_API_KEY }}
run: |
cd nanopb/extra/poetry/build
- poetry publish -n
+ poetry publish -n -v -u __token__ -p "$POETRY_PYPI_TOKEN_PYPI"
test_pypi:
name: Test pypi package
@@ -55,7 +60,8 @@ jobs:
- name: Install PyPI package
run: |
- python3 -m pip install --user --upgrade protobuf grpcio-tools scons nanopb
+ python3 -m pip install --user --upgrade protobuf grpcio-tools scons
+ python3 -m pip install --user --upgrade --pre nanopb
- name: Test PyPI package
run: |
diff --git a/.github/workflows/trigger_on_code_change.yml b/.github/workflows/trigger_on_code_change.yml
index c2266b2..e8bf944 100644
--- a/.github/workflows/trigger_on_code_change.yml
+++ b/.github/workflows/trigger_on_code_change.yml
@@ -35,6 +35,7 @@ jobs:
- name: Install dependencies
run: |
+ sudo apt-get update
sudo apt-get install python3-protobuf protobuf-compiler scons splint valgrind
- name: Run tests
diff --git a/.github/workflows/trigger_on_schedule.yml b/.github/workflows/trigger_on_schedule.yml
index 8af637b..1980b33 100644
--- a/.github/workflows/trigger_on_schedule.yml
+++ b/.github/workflows/trigger_on_schedule.yml
@@ -30,4 +30,6 @@ jobs:
pypi_publish:
needs: binary_packages
uses: ./.github/workflows/pypi_publish.yml
+ secrets:
+ PYPI_API_KEY: ${{ secrets.PYPI_API_KEY }}