Skip to content
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

Introduce new CI to validate new distributions entries #12314

Merged
merged 17 commits into from
Nov 26, 2024
34 changes: 34 additions & 0 deletions .github/workflows/modern-distributions.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Validate tar based distributions

on:
pull_request:
paths: ['distributions/**']

permissions:
pull-requests: write

jobs:
check:
name: Validate tar based distributions changes
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
with:
fetch-depth: 0


- name: Install pip packages
run: pip install -r distributions/requirements.txt
shell: bash

- name: Run validation
run: |
python distributions/validate-modern.py \
--repo-path . \
--compare-with-branch 'origin/${{ github.base_ref }}' \
--manifest distributions/DistributionInfo.json \
--github-token '${{ secrets.GITHUB_TOKEN }}' \
OneBlue marked this conversation as resolved.
Show resolved Hide resolved
--github-pr '${{ github.event.pull_request.number }}' \
--github-commit '${{ github.event.pull_request.merge_commit_sha }}'
shell: bash
1 change: 1 addition & 0 deletions distributions/DistributionInfo.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"ModernDistributions": {},
"Distributions": [
{
"Name": "Ubuntu",
Expand Down
4 changes: 4 additions & 0 deletions distributions/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
python-magic==0.4.27
click==8.1.3
GitPython==3.1.29
PyGithub==2.5.0
Loading