-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Move several workflows to GitHub Actions #1286
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
k8s-ci-robot
merged 2 commits into
kubernetes-client:master
from
palnabarun:gh-actions-enable-e2e
Jun 7, 2021
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: End to End Tests - master | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: [3.6, 3.7, 3.8, 3.9] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
submodules: true | ||
- name: Create Kind Cluster | ||
uses: helm/[email protected] | ||
with: | ||
cluster_name: kubernetes-python-e2e-master-${{ matrix.python-version }} | ||
# The kind version to be used to spin the cluster up | ||
# this needs to be updated whenever a new Kind version is released | ||
version: v0.11.1 | ||
# Update the config here whenever a new client snapshot is performed | ||
# This would eventually point to cluster with the latest Kubernetes version | ||
# as we sync with Kubernetes upstream | ||
config: .github/workflows/kind-configs/cluster-1.18.yaml | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/[email protected] | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
python -m pip install -r requirements.txt | ||
python -m pip install -r test-requirements.txt | ||
- name: Install package | ||
run: python -m pip install -e . | ||
- name: Run End to End tests | ||
run: pytest -vvv -s kubernetes/e2e_test | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. is it possible to pull the main repo and run the e2e tests in the python-base repo using Github Actions? |
This file contains hidden or 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: End to End Tests - release-11.0 | ||
|
||
on: | ||
push: | ||
branches: | ||
- release-11.0 | ||
pull_request: | ||
branches: | ||
- release-11.0 | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: [2.7, 3.5, 3.6, 3.7, 3.8] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
submodules: true | ||
- name: Create Kind Cluster | ||
uses: helm/[email protected] | ||
with: | ||
cluster_name: kubernetes-python-e2e-release-11.0-${{ matrix.python-version }} | ||
# The kind version to be used to spin the cluster up | ||
# this needs to be updated whenever a new Kind version is released | ||
version: v0.11.1 | ||
# Update the config here whenever a new client snapshot is performed | ||
# This would eventually point to cluster with the latest Kubernetes version | ||
# as we sync with Kubernetes upstream | ||
config: .github/workflows/kind-configs/cluster-1.15.yaml | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/[email protected] | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
python -m pip install -r requirements.txt | ||
python -m pip install -r test-requirements.txt | ||
- name: Install package | ||
run: python -m pip install -e . | ||
- name: Run End to End tests | ||
run: pytest -vvv -s kubernetes/e2e_test |
This file contains hidden or 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: End to End Tests - release-12.0 | ||
|
||
on: | ||
push: | ||
branches: | ||
- release-12.0 | ||
pull_request: | ||
branches: | ||
- release-12.0 | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: [2.7, 3.5, 3.6, 3.7, 3.8] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
submodules: true | ||
- name: Create Kind Cluster | ||
uses: helm/[email protected] | ||
with: | ||
cluster_name: kubernetes-python-e2e-release-12.0-${{ matrix.python-version }} | ||
# The kind version to be used to spin the cluster up | ||
# this needs to be updated whenever a new Kind version is released | ||
version: v0.11.1 | ||
# Update the config here whenever a new client snapshot is performed | ||
# This would eventually point to cluster with the latest Kubernetes version | ||
# as we sync with Kubernetes upstream | ||
config: .github/workflows/kind-configs/cluster-1.16.yaml | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/[email protected] | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
python -m pip install -r requirements.txt | ||
python -m pip install -r test-requirements.txt | ||
- name: Install package | ||
run: python -m pip install -e . | ||
- name: Run End to End tests | ||
run: pytest -vvv -s kubernetes/e2e_test |
This file contains hidden or 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: End to End Tests - release-17.0 | ||
|
||
on: | ||
push: | ||
branches: | ||
- release-17.0 | ||
pull_request: | ||
branches: | ||
- release-17.0 | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: [2.7, 3.5, 3.6, 3.7, 3.8] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
submodules: true | ||
- name: Create Kind Cluster | ||
uses: helm/[email protected] | ||
with: | ||
cluster_name: kubernetes-python-e2e-release-17.0-${{ matrix.python-version }} | ||
# The kind version to be used to spin the cluster up | ||
# this needs to be updated whenever a new Kind version is released | ||
version: v0.11.1 | ||
# Update the config here whenever a new client snapshot is performed | ||
# This would eventually point to cluster with the latest Kubernetes version | ||
# as we sync with Kubernetes upstream | ||
config: .github/workflows/kind-configs/cluster-1.17.yaml | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/[email protected] | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
python -m pip install -r requirements.txt | ||
python -m pip install -r test-requirements.txt | ||
- name: Install package | ||
run: python -m pip install -e . | ||
- name: Run End to End tests | ||
run: pytest -vvv -s kubernetes/e2e_test |
This file contains hidden or 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: End to End Tests - release-18.0 | ||
|
||
on: | ||
push: | ||
branches: | ||
- release-18.0 | ||
pull_request: | ||
branches: | ||
- release-18.0 | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: [3.6, 3.7, 3.8, 3.9] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
submodules: true | ||
- name: Create Kind Cluster | ||
uses: helm/[email protected] | ||
with: | ||
cluster_name: kubernetes-python-e2e-release-18.0-${{ matrix.python-version }} | ||
# The kind version to be used to spin the cluster up | ||
# this needs to be updated whenever a new Kind version is released | ||
version: v0.11.1 | ||
# Update the config here whenever a new client snapshot is performed | ||
# This would eventually point to cluster with the latest Kubernetes version | ||
# as we sync with Kubernetes upstream | ||
config: .github/workflows/kind-configs/cluster-1.18.yaml | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/[email protected] | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
python -m pip install -r requirements.txt | ||
python -m pip install -r test-requirements.txt | ||
- name: Install package | ||
run: python -m pip install -e . | ||
- name: Run End to End tests | ||
run: pytest -vvv -s kubernetes/e2e_test |
This file contains hidden or 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
kind: Cluster | ||
apiVersion: kind.x-k8s.io/v1alpha4 | ||
nodes: | ||
- role: control-plane | ||
image: kindest/node:v1.15.12@sha256:b920920e1eda689d9936dfcf7332701e80be12566999152626b2c9d730397a95 | ||
- role: worker | ||
image: kindest/node:v1.15.12@sha256:b920920e1eda689d9936dfcf7332701e80be12566999152626b2c9d730397a95 |
This file contains hidden or 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
kind: Cluster | ||
apiVersion: kind.x-k8s.io/v1alpha4 | ||
nodes: | ||
- role: control-plane | ||
image: kindest/node:v1.16.15@sha256:83067ed51bf2a3395b24687094e283a7c7c865ccc12a8b1d7aa673ba0c5e8861 | ||
- role: worker | ||
image: kindest/node:v1.16.15@sha256:83067ed51bf2a3395b24687094e283a7c7c865ccc12a8b1d7aa673ba0c5e8861 |
This file contains hidden or 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
kind: Cluster | ||
apiVersion: kind.x-k8s.io/v1alpha4 | ||
nodes: | ||
- role: control-plane | ||
image: kindest/node:v1.17.17@sha256:66f1d0d91a88b8a001811e2f1054af60eef3b669a9a74f9b6db871f2f1eeed00 | ||
- role: worker | ||
image: kindest/node:v1.17.17@sha256:66f1d0d91a88b8a001811e2f1054af60eef3b669a9a74f9b6db871f2f1eeed00 |
This file contains hidden or 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
kind: Cluster | ||
apiVersion: kind.x-k8s.io/v1alpha4 | ||
nodes: | ||
- role: control-plane | ||
image: kindest/node:v1.18.19@sha256:7af1492e19b3192a79f606e43c35fb741e520d195f96399284515f077b3b622c | ||
- role: worker | ||
image: kindest/node:v1.18.19@sha256:7af1492e19b3192a79f606e43c35fb741e520d195f96399284515f077b3b622c |
This file contains hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we need to update the release doc. It can be done in a followup