Skip to content

Commit

Permalink
action fix for setup-protoc (#2041)
Browse files Browse the repository at this point in the history
* action fix for setup-protoc

* fix for ardinuio

* fix
  • Loading branch information
kannon92 committed Jan 19, 2023
1 parent 1f553ac commit 369350e
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 6 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/airflow-operator-release-to-pypi.yml
Expand Up @@ -12,12 +12,18 @@ jobs:
steps:
- uses: actions/checkout@v2
- uses: ./.github/workflows/go-setup
- name: Install Protoc
uses: arduino/setup-protoc@v1
with:
version: '3.17.3'
repo-token: ${{ secrets.GITHUB_TOKEN }}
- run: make airflow-operator
- uses: ./.github/workflows/python-tests
with:
python-version: '3.8'
tox-env: 'py38'
path: third_party/airflow
github-token: ${{secrets.GITHUB_TOKEN}}
- name: Publish package to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/airflow-operator.yml
Expand Up @@ -55,9 +55,15 @@ jobs:
steps:
- uses: actions/checkout@v2
- uses: ./.github/workflows/go-setup
- name: Install Protoc
uses: arduino/setup-protoc@v1
with:
version: '3.17.3'
repo-token: ${{ secrets.GITHUB_TOKEN }}
- run: make airflow-operator
- uses: ./.github/workflows/python-tests
with:
python-version: ${{ matrix.python }}
tox-env: ${{ matrix.tox-env }}
path: third_party/airflow
github-token: ${{secrets.GITHUB_TOKEN}}
5 changes: 3 additions & 2 deletions .github/workflows/coverage.yml
Expand Up @@ -45,6 +45,7 @@ jobs:
python-version: '3.10'
tox-env: 'py310'
path: 'client/python'
github-token: ${{secrets.GITHUB_TOKEN}}

- name: Upload Coverage to codecov (./client/python)
uses: codecov/codecov-action@v3
Expand Down Expand Up @@ -75,9 +76,9 @@ jobs:
python-version: '3.10'
tox-env: 'py310'
path: 'third_party/airflow'

github-token: ${{secrets.GITHUB_TOKEN}}
- name: Upload Coverage to codecov (./third_party/airflow)
uses: codecov/codecov-action@v3
with:
files: 'third_party/airflow/coverage.xml'
flags: airflow-operator
flags: airflow-operator
6 changes: 6 additions & 0 deletions .github/workflows/python-client-release-to-pypi.yml
Expand Up @@ -12,11 +12,17 @@ jobs:
steps:
- uses: actions/checkout@v2
- uses: ./.github/workflows/go-setup
- name: Install Protoc
uses: arduino/setup-protoc@v1
with:
version: '3.17.3'
repo-token: ${{ secrets.GITHUB_TOKEN }}
- uses: ./.github/workflows/python-tests
with:
python-version: '3.8'
tox-env: 'py38'
path: 'client/python'
github-token: ${{secrets.GITHUB_TOKEN}}
- name: Publish package to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/python-client.yml
Expand Up @@ -48,6 +48,8 @@ jobs:
python-version: ${{ matrix.python }}
tox-env: ${{ matrix.tox-env }}
path: 'client/python'
github-token: ${{secrets.GITHUB_TOKEN}}

python-client-integration-tests:
runs-on: ubuntu-22.04
strategy:
Expand Down
13 changes: 9 additions & 4 deletions .github/workflows/python-tests/action.yml
Expand Up @@ -14,20 +14,25 @@ inputs:
description: "Tox environment to use for running the tests"
required: true
type: string
github-token:
description: "Token for authenticated github requests"
required: true
type: string

runs:
using: "composite"
steps:
- uses: actions/setup-python@v2
with:
python-version: ${{ inputs.python-version }}
# Tox to run tests; build to build the wheel after tests pass
- run: pip install tox==3.27.1 build twine
shell: bash
- name: Install Protoc
uses: arduino/setup-protoc@v1
with:
version: '3.17.3'
# Tox to run tests; build to build the wheel after tests pass
- run: pip install tox==3.27.1 build twine
shell: bash
repo-token: ${{ inputs.github-token }}
# Generate the proto files for python, required for later steps
- run: make python
shell: bash
Expand All @@ -48,4 +53,4 @@ runs:
python -m build --wheel
twine check dist/*
shell: bash
working-directory: ${{ inputs.path }}
working-directory: ${{ inputs.path }}

0 comments on commit 369350e

Please sign in to comment.