Skip to content

Bump protobuf from 3.20.3 to 4.25.8 in /python #8

Bump protobuf from 3.20.3 to 4.25.8 in /python

Bump protobuf from 3.20.3 to 4.25.8 in /python #8

Workflow file for this run

name: Main
on:
push:
branches:
- master
tags:
- "v*.*.*"
pull_request:
jobs:
test:
defaults:
run:
working-directory: python
strategy:
matrix:
os: [ubuntu-latest]
python-version: ['3.7', '3.8', '3.9', '3.10']
fail-fast: false
max-parallel: 1
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install tox tox-gh-actions
- name: Install with setup.py
run: |
python setup.py install --user
- name: Test with tox
run: tox
build-and-publish:
needs: [test]
runs-on: ubuntu-latest
defaults:
run:
working-directory: python
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Build source and wheel distributions
run: |
python -m pip install --upgrade build twine
python setup.py install
python -m build --sdist --wheel --outdir dist/ .
twine check --strict dist/*
- name: Publish distribution to PyPI
if: startsWith(github.ref, 'refs/tags/v')
uses: pypa/gh-action-pypi-publish@release/v1
with:
packages-dir: python/dist/
password: ${{ secrets.PYPI_API_TOKEN }}