Skip to content

Commit c9e7c98

Browse files
authored
Setup test automation for github org tests (#678)
Signed-off-by: Andrea Lamparelli <a.lamparelli95@gmail.com>
1 parent 7408682 commit c9e7c98

4 files changed

Lines changed: 35 additions & 3 deletions

File tree

.github/ISSUE_TEMPLATE/join_org.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@ Please read the [guidelines](https://www.kubeflow.org/docs/about/contributing/#j
3131
## Additional Instructions
3232
- After your PR is merged please wait at least 1 hour for changes to propagate.
3333
- You will receive an email invite (to your GitHub associated email address) to join Kubeflow on GitHub. Follow the instructions on the email to accept your invitation.
34-
- If after an hour you haven't received an invite to join the GitHub org (or your invite has expired) please open an issue with an [owner](../../OWNERS) tagged to request follow-up.
34+
- If after an hour you haven't received an invite to join the GitHub org (or your invite has expired) please open an issue with an [owner](../../OWNERS) tagged to request follow-up.

.github/requirements.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
pytest==8.2.0
2+
PyYAML==6.0.1
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Github Org Tests
2+
on:
3+
pull_request:
4+
paths:
5+
- github-orgs/kubeflow/org.yaml
6+
- .github/workflows/github_org_test.yaml
7+
jobs:
8+
tests:
9+
runs-on: ubuntu-latest
10+
env:
11+
PYTHON_VERSION: "3.10"
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v4
15+
16+
- name: Set up Python ${{ env.PYTHON_VERSION }}
17+
uses: actions/setup-python@v5
18+
with:
19+
python-version: ${{ env.PYTHON_VERSION }}
20+
cache: "pip"
21+
22+
- name: Install PyTest
23+
run: |
24+
pip install -r .github/requirements.txt
25+
pytest --version
26+
27+
- name: Run tests
28+
working-directory: ./github-orgs
29+
run: |
30+
pytest test_org_yaml.py

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ Repository used to maintain group ACLs used by the Kubeflow community.
44

55
For Google Groups in kubeflow.org, refer to `google_groups` subfolder.
66

7-
Run `pytest` after modifying `org.yaml`. Currently, this must be run
8-
manually. This test run automatically in a future change.
7+
To check if everything is fine after modifying `org.yaml`, you can run
8+
`pytest` locally from `github-orgs` directory.
99

1010
## Joining the Kubeflow GitHub organization
1111

0 commit comments

Comments
 (0)